mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-23 11:26:16 +00:00
use storage dir from env even when the defaults file is missing
This commit is contained in:
@@ -171,11 +171,11 @@ void get_defaults(char *filename, struct udata *ud)
|
||||
config_destroy(cf);
|
||||
exit(2);
|
||||
}
|
||||
|
||||
v = c_str(cf, "OTR_STORAGEDIR", STORAGEDEFAULT);
|
||||
strcpy(STORAGEDIR, v);
|
||||
}
|
||||
|
||||
v = c_str(cf, "OTR_STORAGEDIR", STORAGEDEFAULT);
|
||||
strcpy(STORAGEDIR, v);
|
||||
|
||||
if (ud == NULL) {
|
||||
/* being invoked by ocat; return */
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user