projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3597eb
)
Loader: Fix Seg fault when layers not activated via env var
author
Jon Ashburn
<jon@lunarg.com>
Thu, 23 Oct 2014 16:29:09 +0000
(10:29 -0600)
committer
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Thu, 30 Oct 2014 00:02:02 +0000
(18:02 -0600)
loader/loader.c
patch
|
blob
|
history
diff --git
a/loader/loader.c
b/loader/loader.c
index
7dea427
..
8b0cd67
100644
(file)
--- a/
loader/loader.c
+++ b/
loader/loader.c
@@
-629,6
+629,8
@@
static XGL_UINT loader_get_layer_env(XGL_CHAR * *ppLayerNames)
char *p, *pOrig, *next, *name;
layerEnv = getenv("LIBXGL_LAYER_LIBS");
+ if (!layerEnv)
+ return 0;
p = malloc(strlen(layerEnv) + 1);
if (!p)
return 0;