summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-09 13:52:35 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-10 12:01:05 +0200
commit4e921ffa31fdca2425d326efda1c6d9ad190359a (patch)
tree8d0fe130bd26dedb5c0754249734608217bbd6b9 /config.c
parentd7edafe299d44a0bec9d29e2b3a4ca853ffa1a80 (diff)
upload: handle form submission
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 4401d31..6e4061e 100644
--- a/config.c
+++ b/config.c
@@ -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;