rage - fix coverity issues.

This commit is contained in:
Carsten Haitzler 2015-10-11 14:44:26 +09:00
parent 4b516ab8bb
commit 25a21888bc
2 changed files with 2 additions and 4 deletions

View File

@ -260,11 +260,10 @@ albumart_find(const char *file,
handle_complete = ecore_event_handler_add(ECORE_CON_EVENT_URL_COMPLETE,
_cb_http_complete, NULL);
if (!file) return;
fetchfile = _inpath(file);
_fetch_done = fetch_done;
_fetch_data = _fetch_data;
_fetch_data = fetch_data;
path = _thumbpath(fetchfile);
if (path)

View File

@ -335,8 +335,7 @@ _entry_files_redo(Evas_Object *win, Entry *entry)
_item_size_get(win, &iw, &ih);
cols = w / iw;
if (cols < 1) cols = 1;
if (cols > 0) rows = (num + (cols - 1)) / cols;
else rows = 0;
rows = (num + (cols - 1)) / cols;
entry->iw = iw;
entry->ih = ih;