diff options
| author | Roy Marples <roy@marples.name> | 2009-01-29 13:01:29 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-01-29 13:01:29 +0000 |
| commit | f22fb9b1c1232dd0385a00d7eb8ad0dbc172dc07 (patch) | |
| tree | f886e73a43b66ad78b3e4be0d6e15d322a586427 /common.c | |
| parent | ed913a59775402a9ce66067858d7280fe4506176 (diff) | |
| download | dhcpcd-f22fb9b1c1232dd0385a00d7eb8ad0dbc172dc07.tar.xz | |
Clean up compiler warnings from overly pedantic checking.
Diffstat (limited to 'common.c')
| -rw-r--r-- | common.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -94,7 +94,8 @@ again: } p = lbuf + last; memset(p, 0, BUFSIZ); - fgets(p, BUFSIZ, fp); + if (fgets(p, BUFSIZ, fp) == NULL) + break; last += strlen(p); if (last != 0 && lbuf[last - 1] == '\n') { lbuf[last - 1] = '\0'; |
