Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2014-12-27 01:01:31 +0300
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2014-12-27 01:02:16 +0300
commita18456a2032e49385447a1d0d2f146f65fe9a5e1 (patch)
treefd9c6ec5787c99219828a24195f78a292d5fcf37 /ffserver.c
parent0121ddabb8677730f415115c8f9d50e27269111e (diff)
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.c4
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))