ecore_x: supported isn't an optional argument

if supported is NULL, this function isn't of any use.

Fixes CID 1039430
This commit is contained in:
Sebastian Dransfeld 2013-12-07 17:56:55 +01:00
parent 31d0a2d71c
commit f4c71fba21
1 changed files with 2 additions and 3 deletions

View File

@ -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);