* sbr/addrsbr.c: removed "err" from conditional, because gcc
authorDavid Levine <levinedl@acm.org>
Sun, 18 May 2008 13:56:58 +0000 (13:56 +0000)
committerDavid Levine <levinedl@acm.org>
Sun, 18 May 2008 13:56:58 +0000 (13:56 +0000)
correctly warned that it would always evaluate as true.  It's
the address of a static array.

ChangeLog
sbr/addrsbr.c

index 999e743..8d6c1f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-18  David Levine <levinedl@acm.org>
+
+       * sbr/addrsbr.c: removed "err" from conditional, because gcc
+       correctly warned that it would always evaluate as true.  It's
+       the address of a static array.
+
 2008-05-16  Oliver Kiddle <okiddle@yahoo.co.uk>
 
        * sbr/Makefile.in, config/Makefile.in: Don't use $< in target rules
index fa45e31..09e4c6c 100644 (file)
@@ -119,7 +119,7 @@ getm (char *str, char *dfhost, int dftype, int wanthost, char *eresult)
     char *dp;
 #endif /* not DUMB */
 
-    if (err && err[0]) {
+    if (err[0]) {
        if (eresult)
            strcpy (eresult, err);
        else