prepare-root: Check for empty string, not strlen > 0
authorColin Walters <walters@verbum.org>
Mon, 14 Aug 2023 18:30:42 +0000 (14:30 -0400)
committerColin Walters <walters@verbum.org>
Mon, 14 Aug 2023 18:30:42 +0000 (14:30 -0400)
commit678bfcd934e135a28fef172db675a0ae81ae85b1
treee737321cc8d958423b767c803436cde86d677100
parentbea5d897a810302263779fcd1542310481626368
prepare-root: Check for empty string, not strlen > 0

No point in doing a full strlen, we can just check the first byte.
Also, invert the conditional using `continue` to avoid another
level of indentation.
src/switchroot/ostree-prepare-root.c