diff options
Diffstat (limited to 'clients/znol/znol.c')
-rw-r--r-- | clients/znol/znol.c | 3 |
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; |