]> 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)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 29 Oct 2018 09:46:22 +0000 (10:46 +0100)
fstype can be NULL here.

(cherry picked from commit 4db1879acdc0b853e1a7e6e650b6feb917175fac)

Resolves: #1602706

src/shared/dissect-image.c

index fa1cf26ee1fd3e6016f2d43eea8e535ae9047f7a..e076c8e7db8f05b9328f14cffaf6bb32522c1a8a 100644 (file)
@@ -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);