raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=4f5067dde971b0f487de469c9bcefaff9157ba4a

commit 4f5067dde971b0f487de469c9bcefaff9157ba4a
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Nov 6 11:19:39 2017 +0900

    hits: silence warnings about possible null string for strcmp
---
 src/bin/e_hints.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c
index 067dc0b9a..c5f842772 100644
--- a/src/bin/e_hints.c
+++ b/src/bin/e_hints.c
@@ -1782,7 +1782,7 @@ e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t 
id, const char *name, con
    E_Comp_Wl_Aux_Hint *hint;
    Eina_List *l;
 
-   if (!cp) return EINA_FALSE;
+   if ((!cp) || (!val) || (!name)) return EINA_FALSE;
    cdata = (E_Comp_Wl_Client_Data*)e_pixmap_cdata_get(cp);
    if (!cdata) return EINA_FALSE;
 
@@ -1836,7 +1836,7 @@ e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t 
id, const char *val, i
    E_Comp_Wl_Aux_Hint *hint;
    Eina_Bool found = EINA_FALSE;
 
-   if (!cp) return EINA_FALSE;
+   if ((!cp) || (!val)) return EINA_FALSE;
    cdata = (E_Comp_Wl_Client_Data*)e_pixmap_cdata_get(cp);
    if (!cdata) return EINA_FALSE;
 

-- 


Reply via email to