diff --git a/src/lib/ecore_x/xlib/ecore_x_netwm.c b/src/lib/ecore_x/xlib/ecore_x_netwm.c index b15832d2f1..83615e7419 100644 --- a/src/lib/ecore_x/xlib/ecore_x_netwm.c +++ b/src/lib/ecore_x/xlib/ecore_x_netwm.c @@ -137,12 +137,11 @@ ecore_x_netwm_supported_get(Ecore_X_Window root, { int num_ret; + EINA_SAFETY_ON_NULL_RETURN_VAL(supported, EINA_FALSE); + if (num) *num = 0; - if (supported) - *supported = NULL; - LOGFN(__FILE__, __LINE__, __FUNCTION__); num_ret = ecore_x_window_prop_atom_list_get(root, ECORE_X_ATOM_NET_SUPPORTED, supported);