diff --git a/legacy/ethumb/src/bin/ethumbd.c b/legacy/ethumb/src/bin/ethumbd.c index 31cc593bad..6e29b4d869 100644 --- a/legacy/ethumb/src/bin/ethumbd.c +++ b/legacy/ethumb/src/bin/ethumbd.c @@ -384,10 +384,10 @@ _ethumbd_slave_cmd_ready(struct _Ethumbd *ed) { char *bufcmd = ed->slave.bufcmd; Eina_Bool *success; - char *thumb_path, *thumb_key; + const char *thumb_path = NULL; + const char *thumb_key = NULL; int *size_path, *size_key; - success = (Eina_Bool *)bufcmd; bufcmd += sizeof(*success); @@ -396,13 +396,16 @@ _ethumbd_slave_cmd_ready(struct _Ethumbd *ed) _write_safe(STDERR_FILENO, bufcmd, ed->slave.scmd); - thumb_path = bufcmd; - bufcmd += *size_path; + if (*size_path) + { + thumb_path = bufcmd; + bufcmd += *size_path; + } size_key = (int *)bufcmd; bufcmd += sizeof(*size_key); - thumb_key = bufcmd; + if (*size_key) thumb_key = bufcmd; _generated_cb(ed, *success, thumb_path, thumb_key); diff --git a/legacy/ethumb/src/bin/ethumbd_child.c b/legacy/ethumb/src/bin/ethumbd_child.c index 9aa660cd82..3f84efdeb2 100644 --- a/legacy/ethumb/src/bin/ethumbd_child.c +++ b/legacy/ethumb/src/bin/ethumbd_child.c @@ -220,7 +220,6 @@ _ec_op_generated_cb(void *data, Ethumb *e, Eina_Bool success) const char *thumb_path, *thumb_key; int size_path, size_key, size_cmd; - fprintf(stderr, "thumbnail generated!"); DBG("thumb generated!"); ethumb_thumb_path_get(e, &thumb_path, &thumb_key);