mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-26 01:40:12 -05:00
server: make sure ‘overrides’ have been initialized in all error paths
This commit is contained in:
parent
15e7e80245
commit
ef349bfea2
1 changed files with 1 additions and 1 deletions
2
server.c
2
server.c
|
|
@ -150,6 +150,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
|
||||||
struct server *server = client->server;
|
struct server *server = client->server;
|
||||||
|
|
||||||
char **argv = NULL;
|
char **argv = NULL;
|
||||||
|
config_override_t overrides = tll_init();
|
||||||
|
|
||||||
if (events & EPOLLHUP)
|
if (events & EPOLLHUP)
|
||||||
goto shutdown;
|
goto shutdown;
|
||||||
|
|
@ -240,7 +241,6 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
|
||||||
|
|
||||||
uint8_t *p = client->buffer.data;
|
uint8_t *p = client->buffer.data;
|
||||||
const uint8_t *end = &client->buffer.data[client->buffer.idx];
|
const uint8_t *end = &client->buffer.data[client->buffer.idx];
|
||||||
config_override_t overrides = tll_init();
|
|
||||||
|
|
||||||
struct client_data cdata;
|
struct client_data cdata;
|
||||||
CHECK_BUF(sizeof(cdata));
|
CHECK_BUF(sizeof(cdata));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue