diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2012-01-13 06:51:15 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2012-01-13 06:51:15 +0000 |
commit | a3a2bf4b67301263d37db3e0702845dbc671f439 (patch) | |
tree | 2f39c41e193505df2d97cf331a8647c9f25c53c9 /usr.bin/tftp | |
parent | ab80dcdb1c18421a1f0c62018aa4d223110a9a0c (diff) | |
download | src-a3a2bf4b67301263d37db3e0702845dbc671f439.tar.gz src-a3a2bf4b67301263d37db3e0702845dbc671f439.zip |
fgets(3) returns a pointer, so compare against NULL, not integer 0.
Notes
Notes:
svn path=/head/; revision=230044
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r-- | usr.bin/tftp/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index 0092827f2542..669299bde06d 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -734,7 +734,7 @@ command(void) history(hist, &he, H_ENTER, bp); } else { line[0] = 0; - if (fgets(line, sizeof line , stdin) == 0) { + if (fgets(line, sizeof line , stdin) == NULL) { if (feof(stdin)) { exit(txrx_error); } else { |