aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Elliott <ian@LunarG.com>2015-02-19 15:49:03 -0700
committerIan Elliott <ian@lunarg.com>2015-02-19 16:39:52 -0700
commitcf628ca862f13020c83998faacdfd454d90c49ef (patch)
tree32c25c3fda9cba1bbf66f60531eeebc06a357759
parent7a77ad5a47b7ddc0a6c8ae7077d07c4bb313e99a (diff)
downloadusermoji-cf628ca862f13020c83998faacdfd454d90c49ef.tar.xz
loader: initialize result for xglCreateInstance().
-rw-r--r--loader/loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c
index cbfd66e3..6d877951 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -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);