From 25a21888bca3eb6c078097516084bca99ea125a0 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 11 Oct 2015 14:44:26 +0900 Subject: [PATCH] rage - fix coverity issues. --- src/bin/albumart.c | 3 +-- src/bin/browser.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bin/albumart.c b/src/bin/albumart.c index d32a532..9faf4fa 100644 --- a/src/bin/albumart.c +++ b/src/bin/albumart.c @@ -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) diff --git a/src/bin/browser.c b/src/bin/browser.c index 3a1cd9b..975e2a2 100644 --- a/src/bin/browser.c +++ b/src/bin/browser.c @@ -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;