forked from enlightenment/efl
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:
parent
6f56406f59
commit
31fde249d4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue