projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f43e3
)
Randr: Fix null dereference.
author
Tom Hacohen
<tom@stosb.com>
Tue, 16 Dec 2014 14:56:10 +0000
(14:56 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Tue, 16 Dec 2014 14:56:10 +0000
(14:56 +0000)
CID1181926
src/bin/e_randr.c
patch
|
blob
|
history
diff --git
a/src/bin/e_randr.c
b/src/bin/e_randr.c
index
bc6dde3
..
d780129
100644
(file)
--- a/
src/bin/e_randr.c
+++ b/
src/bin/e_randr.c
@@
-1094,21
+1094,20
@@
_e_randr_output_crtc_find(E_Randr_Output *output)
goto done;
}
}
- crtc = NULL;
-
done
:
+
error
:
free(possible);
free(modes);
- output->crtcid = crtc->xid;
- output->crtc = crtc;
+ output->crtc = NULL;
return;
-
error
:
+
done
:
free(possible);
free(modes);
- output->crtc = NULL;
+ output->crtcid = crtc->xid;
+ output->crtc = crtc;
}
static void