Blame SOURCES/0030-dissect-image-use-right-comparison-function.patch

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