Merge pull request #528 from sarg/master

use storage dir from env even when the defaults file is missing
This commit is contained in:
Jan-Piet Mens
2025-04-14 08:48:35 +02:00
committed by GitHub
+3 -3
View File
@@ -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;