diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,10 +37,10 @@ extern char **environ; char * config_data_dir() { - char *key; + char *key, **var; key = "VAULT_DATA_DIR"; - for (char **var = environ; *var; var++) { + for (var = environ; *var; var++) { if (strncmp(key, *var, strlen(key)) == 0) { if (strlen(*var) <= strlen(key)) return NULL; |