aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-10-10 08:33:37 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-14 14:55:29 -0600
commit5996f5956f74bb747356236bcbec4d4fb9ddf2b9 (patch)
tree3a5229908c645b920cf239065cfdfbd8e1fdedb7 /loader/loader.c
parent10cb4d689bce5675c5ac88589374769445f33c03 (diff)
downloadusermoji-5996f5956f74bb747356236bcbec4d4fb9ddf2b9.tar.xz
loader: Use loc instead of location for getting the directory
Without this, the VK_ICD_FILENAMES parameter ends up getting ignored
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 51b9c6b0..80a628db 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1694,12 +1694,12 @@ static void loader_get_manifest_files(const struct loader_instance *inst,
// only Linux has relative paths
char *dir;
// make a copy of location so it isn't modified
- dir = loader_stack_alloc(strlen(location) + 1);
+ dir = loader_stack_alloc(strlen(loc) + 1);
if (dir == NULL) {
loader_log(VK_DBG_REPORT_ERROR_BIT, 0, "Out of memory can't get manifest files");
return;
}
- strcpy(dir, location);
+ strcpy(dir, loc);
loader_get_fullpath(file, dir, sizeof(full_path), full_path);