rimmed pushed a commit to branch master.

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

commit 9a8033025cb4c22ca91ce2316d076258449f38c9
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