rimmed pushed a commit to branch eflete-1.18.

http://git.enlightenment.org/tools/eflete.git/commit/?id=e27da97fd6899d3b29d4b15f2eda564353a120f6

commit e27da97fd6899d3b29d4b15f2eda564353a120f6
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Sep 15 12:24:40 2016 +0300

    popup: fix enum check
    
    Fix svace WID 436596
---
 src/bin/ui/popup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/ui/popup.c b/src/bin/ui/popup.c
index 77a7b2d..7d262a4 100644
--- a/src/bin/ui/popup.c
+++ b/src/bin/ui/popup.c
@@ -113,7 +113,7 @@ _button_add(Popup_Data *pd, int *btn_pos, const char *text, 
Popup_Button pb)
    assert(*btn_pos < 3); /* maximum buttons count */
    assert(text != NULL);
 
-   if (!pb)
+   if (pb == BTN_NONE)
      return NULL;
 
    BUTTON_ADD(pd->popup, btn, text);

-- 


Reply via email to