ethumbd_slave: fix coverity defect

Fixes CID 1193232 (string not null terminated)
This commit is contained in:
Daniel Kolesa 2014-08-04 10:44:35 +01:00
parent e37ad31e58
commit 97dc9cac36
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ _ec_pipe_str_read(struct _Ethumbd_Child *ec EINA_UNUSED, char **str)
{
int size;
int r;
char buf[PATH_MAX];
char buf[PATH_MAX] = { '\0' };
r = _ec_read_safe(STDIN_FILENO, &size, sizeof(size));
if (!r)