aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ethumb_client/ethumbd_slave.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-04 10:44:35 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-04 10:44:35 +0100
commit97dc9cac367aeeddf94a31131994e8c188534702 (patch)
tree6fab53bfb309fe084e70fd43d5fc8d0ee1efde92 /src/bin/ethumb_client/ethumbd_slave.c
parentdoxygen: sanitize Eo Tutorial (diff)
downloadefl-97dc9cac367aeeddf94a31131994e8c188534702.tar.gz
ethumbd_slave: fix coverity defect
Fixes CID 1193232 (string not null terminated)
Diffstat (limited to '')
-rw-r--r--src/bin/ethumb_client/ethumbd_slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ethumb_client/ethumbd_slave.c b/src/bin/ethumb_client/ethumbd_slave.c
index 294421d31b..387908b6e8 100644
--- a/src/bin/ethumb_client/ethumbd_slave.c
+++ b/src/bin/ethumb_client/ethumbd_slave.c
@@ -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)