return -1 on error instead

SVN revision: 40971
This commit is contained in:
Viktor Kojouharov 2009-06-08 15:44:43 +00:00
parent 06437b0e33
commit fca7b4aa43
1 changed files with 1 additions and 5 deletions

View File

@ -793,10 +793,6 @@ _ethumb_client_queue_add(Ethumb_Client *client, const char *file, const char *ke
DBusMessageIter iter;
struct _ethumb_pending_add *pending;
if (!client->id_count)
client->id_count++;
pending = calloc(1, sizeof(*pending));
pending->id = client->id_count;
pending->file = eina_stringshare_add(file);
@ -1155,7 +1151,7 @@ ethumb_client_generate(Ethumb_Client *client, generated_callback_t generated_cb,
if (!file)
{
ERR("no file set.\n");
return 0;
return -1;
}
ethumb_thumb_path_get(client->ethumb, &thumb, &thumb_key);