diff mbox

[9/9] external/drm: Avoid uninitialized variable

Message ID 1425620714-21703-10-git-send-email-praveen.paneri@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Praveen Paneri March 6, 2015, 5:45 a.m. UTC
drmSLLookupNeighbors function is using update without
initializing it. Fixed it by calling SLLocate().

Signed-off-by: Praveen Paneri <praveen.paneri@intel.com>
---
 xf86drmSL.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/xf86drmSL.c b/xf86drmSL.c
index 00ae9f9..ca54148 100644
--- a/xf86drmSL.c
+++ b/xf86drmSL.c
@@ -271,6 +271,7 @@  int drmSLLookupNeighbors(void *l, unsigned long key,
     SLEntryPtr    update[SL_MAX_LEVEL + 1];
     int           retcode = 0;
 
+    SLLocate(list, key, update);
     *prev_key   = *next_key   = key;
     *prev_value = *next_value = NULL;