rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=f168d25b56a064cc2dcd205cbfc78780102a44db
commit f168d25b56a064cc2dcd205cbfc78780102a44db Author: Vyacheslav Reutskiy <[email protected]> Date: Thu Oct 27 14:15:23 2016 +0300 popup: make assert not agressive Change-Id: I1a4f32465cae55ae244d4893c2af1afbb0bee7b8 --- src/bin/ui/popup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/ui/popup.c b/src/bin/ui/popup.c index 06a0c80..5bb0032 100644 --- a/src/bin/ui/popup.c +++ b/src/bin/ui/popup.c @@ -111,12 +111,13 @@ _button_add(Popup_Data *pd, int *btn_pos, const char *text, Popup_Button pb) assert(pd != NULL); assert(btn_pos != NULL); - assert(*btn_pos < 3); /* maximum buttons count */ assert(text != NULL); if (pb == BTN_NONE) return NULL; + assert(*btn_pos < 3); /* maximum buttons count */ + BUTTON_ADD(pd->popup, btn, text); evas_object_data_set(btn, POPUP_DATA, pd); evas_object_smart_callback_add(btn, signals.elm.button.clicked, _popup_btn_cb, (void *)pb); --
