loader: initialize result for xglCreateInstance().
authorIan Elliott <ian@LunarG.com>
Thu, 19 Feb 2015 22:49:03 +0000 (15:49 -0700)
committerIan Elliott <ian@lunarg.com>
Thu, 19 Feb 2015 23:39:52 +0000 (16:39 -0700)
loader/loader.c

index cbfd66e..6d87795 100644 (file)
@@ -936,7 +936,7 @@ LOADER_EXPORT XGL_RESULT XGLAPI xglCreateInstance(
     struct loader_instance *ptr_instance = NULL;
     struct loader_scanned_icds *scanned_icds;
     struct loader_icd *icd;
-    XGL_RESULT res;
+    XGL_RESULT res = XGL_ERROR_INITIALIZATION_FAILED;
 
     /* Scan/discover all ICD libraries in a single-threaded manner */
     loader_platform_thread_once(&once_icd, loader_icd_scan);