diff options
author | brian <brian@cvs.openbsd.org> | 1997-12-21 03:41:28 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1997-12-21 03:41:28 +0000 |
commit | 16b40e2c60fa871349b301a23ae239fc62f70460 (patch) | |
tree | 11e03717c99fabf7707c8949abd6144faa0592b4 /usr.sbin/ppp | |
parent | 4e1b60c3b8d6d1c82dcd78b145417ea7ab08045f (diff) |
Cosmetic: Test for comment lines after the lenght has been established.
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/systems.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index f6a1b88cef8..3382f874a26 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: systems.c,v 1.5 1997/12/21 02:11:29 brian Exp $ + * $Id: systems.c,v 1.6 1997/12/21 03:41:27 brian Exp $ * * TODO: */ @@ -288,10 +288,8 @@ ReadSystem(const char *name, const char *file, int doexec) if (issep(*cp)) { n = strspn(cp, " \t"); cp += n; - if (*cp == '#') - continue; len = strlen(cp); - if (!len) + if (!len || *cp == '#') continue; if (cp[len-1] == '\n') cp[--len] = '\0'; |