evas/cserve2: Minor fixes from Coverity check

- CID 1042303
- CID 1039912
- CID 1039285
This commit is contained in:
Jean-Philippe Andre 2013-07-05 13:45:28 +09:00
parent 8b257d0238
commit cf61319ae1
3 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,7 @@ parse_input_open(int *size)
msg.file_id = file_id;
msg.path_offset = 0;
msg.key_offset = path_len;
msg.has_load_opts = EINA_FALSE;
memcpy(buf, &msg, sizeof(msg));
memcpy(buf + sizeof(msg), path, path_len);

View File

@ -260,6 +260,7 @@ cserve2_client_accept(int fd)
eina_error_msg_get(err));
free(client);
close(fd);
return;
}
cserve2_fd_watch_add(fd, FD_READ | FD_ERROR, cserve2_message_handler,

View File

@ -523,6 +523,7 @@ cserve2_slave_thread_run(Slave_Thread_Cb thread_cb, void *thread_data, Slave_Rea
if (!sd)
{
ERR("Could not create Slave_Thread_Data.");
free(s);
return NULL;
}