From: David Tardon Date: Tue, 9 Oct 2018 11:50:55 +0000 (+0200) Subject: dissect-image: use right comparison function X-Git-Tag: v239-9~17 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e615b80f3fda82ac7fe628800a9ff2103788bd05;p=thirdparty%2Fsystemd.git dissect-image: use right comparison function fstype can be NULL here. (cherry picked from commit 4db1879acdc0b853e1a7e6e650b6feb917175fac) Resolves: #1602706 --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index fa1cf26ee1f..e076c8e7db8 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -230,7 +230,7 @@ int dissect_image( .node = TAKE_PTR(n), }; - m->encrypted = streq(fstype, "crypto_LUKS"); + m->encrypted = streq_ptr(fstype, "crypto_LUKS"); *ret = TAKE_PTR(m);