ecore_x: Also check for !prop here

We check if prop is NULL after first property check, do it here too.

Fixes CID 1039429
This commit is contained in:
Sebastian Dransfeld 2013-12-07 15:44:04 +01:00
parent 6f56406f59
commit 31fde249d4
1 changed files with 1 additions and 1 deletions

View File

@ -2681,7 +2681,7 @@ ecore_x_randr_output_backlight_level_get(Ecore_X_Window root EINA_UNUSED, Ecore_
}
/* safety check */
if ((type != XA_INTEGER) || (items != 1) || (format != 32))
if ((!prop) || (type != XA_INTEGER) || (items != 1) || (format != 32))
{
WRN("Backlight property is not supported on this server or driver");
return -1;