diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2014-12-27 00:34:52 +0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2014-12-27 00:34:52 +0300 |
commit | 114622369939f0a6a9794d273e6c5adad17a437c (patch) | |
tree | cfe670f41e5dfd0de1c13f9daa48a603b132d2b0 /ffserver.c | |
parent | 978bc4327b11d75fdc5302a83dbf70499068eded (diff) |
ffserver: minor formatting improvement to http_server()
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ffserver.c b/ffserver.c index beda07a20c..7ddacd24dd 100644 --- a/ffserver.c +++ b/ffserver.c @@ -550,8 +550,11 @@ static int http_server(void) struct pollfd *poll_table, *poll_entry; HTTPContext *c, *c_next; - if(!(poll_table = av_mallocz_array(config.nb_max_http_connections + 2, sizeof(*poll_table)))) { - http_log("Impossible to allocate a poll table handling %d connections.\n", config.nb_max_http_connections); + poll_table = av_mallocz_array(config.nb_max_http_connections + 2, + sizeof(*poll_table)); + if(!poll_table) { + http_log("Impossible to allocate a poll table handling %d " + "connections.\n", config.nb_max_http_connections); return -1; } |