ecore-drm: Fix using uninitialized output value
authorMinJeong Kim <minjjj.kim@samsung.com>
Wed, 29 Apr 2015 12:47:32 +0000 (08:47 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 29 Apr 2015 12:47:32 +0000 (08:47 -0400)
Summary:
This revision fixed using of uninitialized value 'output'.
The usage can cause segmentation fault when it try to refer current_mode

@fix

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2448

src/lib/ecore_drm/ecore_drm_evdev.c

index 666c900438bf4c30712c7158c651b4cb0508a7c6..c99597548c03322328f2c326ac0bcb285b5a5091 100644 (file)
@@ -51,7 +51,7 @@ static void
 _device_output_set(Ecore_Drm_Evdev *edev)
 {
    Ecore_Drm_Input *input;
-   Ecore_Drm_Output *output;
+   Ecore_Drm_Output *output = NULL;
    const char *oname;
 
    if (!edev->seat) return;