raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=25a21888bca3eb6c078097516084bca99ea125a0

commit 25a21888bca3eb6c078097516084bca99ea125a0
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Oct 11 14:44:26 2015 +0900

    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;

-- 


Reply via email to