summaryrefslogtreecommitdiff
path: root/clients/znol
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-21 07:57:32 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-21 07:57:32 +0000
commitee442551e1531712226a3a3ba26afff466100bb5 (patch)
treed7907b07baecce7abe3940bec566b3bf56596f2f /clients/znol
parente6fb0737027ee97d911e8d507b1db37446067d10 (diff)
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'clients/znol')
-rw-r--r--clients/znol/znol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/znol/znol.c b/clients/znol/znol.c
index cdb0349..33f5096 100644
--- a/clients/znol/znol.c
+++ b/clients/znol/znol.c
@@ -137,7 +137,8 @@ main(int argc,
if (cleanname[0] == '#' || cleanname[0] == '\0' ||
cleanname[0] == '\n')
continue; /* ignore comment and empty lines */
- if (comment_ptr = strchr(cleanname, '#'))
+ comment_ptr = strchr(cleanname, '#');
+ if (comment_ptr)
*comment_ptr = '\0'; /* Ignore from # onwards */
/* Get rid of old-style nol entries, just in case */
cp = cleanname + strlen(cleanname) - 1;