richardphibel / rpms / systemd

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