From a144b152b44f9b54b6bf4d1212eed8a6b56efe8b Mon Sep 17 00:00:00 2001 From: Frode Aannevik Date: Tue, 29 Dec 2015 18:08:07 +0100 Subject: [PATCH] fix warning about tautological-pointer-compare warning: comparison of array 'pattern' equal to a null pointer is always false --- src/hstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hstr.c b/src/hstr.c index 90ee78e..3cbb78a 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -1087,7 +1087,7 @@ void loop_to_select(Hstr *hstr) favorites_choose(hstr->favorites,result); } } else { - result=(pattern==NULL?"":pattern); + result=pattern; } done=TRUE; break; @@ -1100,7 +1100,7 @@ void loop_to_select(Hstr *hstr) favorites_choose(hstr->favorites,result); } } else { - result=(pattern==NULL?"":pattern); + result=pattern; } done=TRUE; break;