discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=88a0872760d59fc31413cf9c22386d0766624f81

commit 88a0872760d59fc31413cf9c22386d0766624f81
Author: Tom Hacohen <t...@stosb.com>
Date:   Tue Dec 16 14:56:10 2014 +0000

    Randr: Fix null dereference.
    
    CID1181926
---
 src/bin/e_randr.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index 0697394..1f11e12 100644
--- 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

-- 


Reply via email to