diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2014-12-26 19:01:31 -0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2014-12-26 19:02:16 -0300 |
commit | a18456a2032e49385447a1d0d2f146f65fe9a5e1 (patch) | |
tree | fd9c6ec5787c99219828a24195f78a292d5fcf37 /ffserver.c | |
parent | 0121ddabb8677730f415115c8f9d50e27269111e (diff) | |
download | ffmpeg-a18456a2032e49385447a1d0d2f146f65fe9a5e1.tar.gz |
ffserver: check for EOF|error at loop condition
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ffserver.c b/ffserver.c index 044bf6f4de..9472c41aab 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1199,9 +1199,7 @@ static FFServerIPAddressACL* parse_dynamic_acl(FFServerStream *stream, HTTPConte acl = av_mallocz(sizeof(FFServerIPAddressACL)); /* Build ACL */ - for(;;) { - if (fgets(line, sizeof(line), f) == NULL) - break; + while (fgets(line, sizeof(line), f)) { line_num++; p = line; while (av_isspace(*p)) |