From 4db1879acdc0b853e1a7e6e650b6feb917175fac Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 9 Oct 2018 13:50:55 +0200 Subject: [PATCH] dissect-image: use right comparison function fstype can be NULL here. --- src/shared/dissect-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);