]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-image: use right comparison function
authorDavid Tardon <dtardon@redhat.com>
Tue, 9 Oct 2018 11:50:55 +0000 (13:50 +0200)
committerDavid Tardon <dtardon@redhat.com>
Fri, 12 Oct 2018 10:38:49 +0000 (12:38 +0200)
fstype can be NULL here.

src/shared/dissect-image.c

index b6e0534b5db5fea33609a331f779f78824f95076..710507ed5cc45a833d4e0841f46c7d179cb62107 100644 (file)
@@ -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);