Blob Blame History Raw
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Robbie Harwood <rharwood@redhat.com>
Date: Tue, 8 Mar 2022 12:59:34 -0500
Subject: [PATCH] daemon: remove always-true comparison

Signed-off-by: Robbie Harwood <rharwood@redhat.com>
(cherry picked from commit 500ee15d26630066baaa48dea1dbfd614d8ea225)
---
 src/daemon.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/daemon.c b/src/daemon.c
index 3ae3c8d..1179cb3 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -234,8 +234,7 @@ malformed:
 	if (!ctx->cms->tokenname)
 		goto oom;
 
-	if (!tp->value)
-		pin = strndup((char *)tp->value, tp->size);
+	pin = strndup((char *)tp->value, tp->size);
 	if (!pin)
 		goto oom;