projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f56406
)
ecore_x: Also check for !prop here
author
Sebastian Dransfeld
<sd@tango.flipp.net>
Sat, 7 Dec 2013 14:44:04 +0000
(15:44 +0100)
committer
Sebastian Dransfeld
<sd@tango.flipp.net>
Sat, 7 Dec 2013 20:11:33 +0000
(21:11 +0100)
We check if prop is NULL after first property check, do it here too.
Fixes CID 1039429
src/lib/ecore_x/xlib/ecore_x_randr.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_x/xlib/ecore_x_randr.c
b/src/lib/ecore_x/xlib/ecore_x_randr.c
index
57d2e6e
..
0be984d
100644
(file)
--- a/
src/lib/ecore_x/xlib/ecore_x_randr.c
+++ b/
src/lib/ecore_x/xlib/ecore_x_randr.c
@@
-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;