mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
ffserver: minor formatting improvement to http_server()
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
parent
978bc4327b
commit
1146223699
@ -550,8 +550,11 @@ static int http_server(void)
|
|||||||
struct pollfd *poll_table, *poll_entry;
|
struct pollfd *poll_table, *poll_entry;
|
||||||
HTTPContext *c, *c_next;
|
HTTPContext *c, *c_next;
|
||||||
|
|
||||||
if(!(poll_table = av_mallocz_array(config.nb_max_http_connections + 2, sizeof(*poll_table)))) {
|
poll_table = av_mallocz_array(config.nb_max_http_connections + 2,
|
||||||
http_log("Impossible to allocate a poll table handling %d connections.\n", config.nb_max_http_connections);
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user