ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
36e8a3
From e615b80f3fda82ac7fe628800a9ff2103788bd05 Mon Sep 17 00:00:00 2001
36e8a3
From: David Tardon <dtardon@redhat.com>
36e8a3
Date: Tue, 9 Oct 2018 13:50:55 +0200
36e8a3
Subject: [PATCH] dissect-image: use right comparison function
36e8a3
36e8a3
fstype can be NULL here.
36e8a3
36e8a3
(cherry picked from commit 4db1879acdc0b853e1a7e6e650b6feb917175fac)
36e8a3
36e8a3
Resolves: #1602706
36e8a3
---
36e8a3
 src/shared/dissect-image.c | 2 +-
36e8a3
 1 file changed, 1 insertion(+), 1 deletion(-)
36e8a3
36e8a3
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
36e8a3
index fa1cf26ee..e076c8e7d 100644
36e8a3
--- a/src/shared/dissect-image.c
36e8a3
+++ b/src/shared/dissect-image.c
36e8a3
@@ -230,7 +230,7 @@ int dissect_image(
36e8a3
                                 .node = TAKE_PTR(n),
36e8a3
                         };
36e8a3
 
36e8a3
-                        m->encrypted = streq(fstype, "crypto_LUKS");
36e8a3
+                        m->encrypted = streq_ptr(fstype, "crypto_LUKS");
36e8a3
 
36e8a3
                         *ret = TAKE_PTR(m);
36e8a3