From: David Levine Date: Sun, 18 May 2008 13:56:58 +0000 (+0000) Subject: * sbr/addrsbr.c: removed "err" from conditional, because gcc X-Git-Tag: PRE_POSIX_CONVERSION~63 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=3adc6332ad97bf689bcfb8ab5fd45c86a6051a77;p=mmh * 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. --- diff --git a/ChangeLog b/ChangeLog index 999e743..8d6c1f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-18 David Levine + + * 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 * sbr/Makefile.in, config/Makefile.in: Don't use $< in target rules diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index fa45e31..09e4c6c 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -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