poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] Remove superfluous test


From: John Darrington
Subject: [PATCH 2/2] Remove superfluous test
Date: Wed, 13 Nov 2019 10:15:44 +0100

From: John Darrington <address@hidden>

line cannot be NULL here because of the preceeding break.

        * src/pk-repl.c (pk_repl): Remove superfluous test for NULL.
---
 src/pk-repl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pk-repl.c b/src/pk-repl.c
index 5c4595b..7fc1d1b 100644
--- a/src/pk-repl.c
+++ b/src/pk-repl.c
@@ -311,7 +311,7 @@ pk_repl (void)
         continue;
 
 #if defined HAVE_READLINE_HISTORY_H
-      if (line && *line)
+      if (line)
         add_history (line);
 #endif
 
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]