Commit f54ea81e authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

initialize buffers

parent 5a1b2d1a
......@@ -149,7 +149,7 @@ static int parse_http_request(const char* buf, size_t sz)
*/
static void* serve_client(void *ctxt)
{
char buf[1024];
char buf[1024] = {0};
struct client* client = ctxt;
memset(client->sendBuff, '0', sizeof(client->sendBuff));
int rres = read(client->connfd, buf, 1024);
......@@ -317,7 +317,7 @@ static int try_accept_motion(struct global_state* state)
static void* motion_task(void *ctxt)
{
struct global_state* state = ctxt;
char buf[1024];
char buf[1024] ={0};
intptr_t result=0;
state->mfd.fd = state->motionfd;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment