|
@@ -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;
|
|
|
}
|
|
|
|