englebass pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=43aed04241d76fa61df14a37943dc390cc4f6fab

commit 43aed04241d76fa61df14a37943dc390cc4f6fab
Author: Sebastian Dransfeld <s...@tango.flipp.net>
Date:   Mon Feb 24 09:17:25 2014 +0100

    randr: check NULL before dereference
    
    Fixes CID 1181926
---
 src/bin/e_randr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index 67f0a37..0a46f6a 100644
--- a/src/bin/e_randr.c
+++ b/src/bin/e_randr.c
@@ -934,7 +934,8 @@ done:
    free(possible);
    free(modes);
 
-   output->cfg->crtc = crtc->xid;
+   if (crtc)
+     output->cfg->crtc = crtc->xid;
    return crtc;
 
 error:

-- 


Reply via email to