From: David Tardon Date: Tue, 9 Oct 2018 11:50:55 +0000 (+0200) Subject: dissect-image: use right comparison function X-Git-Tag: v240~563^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db1879acdc0b853e1a7e6e650b6feb917175fac;p=thirdparty%2Fsystemd.git dissect-image: use right comparison function fstype can be NULL here. --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index b6e0534b5db..710507ed5cc 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -231,7 +231,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);