From 05748195a8c52ec8afe673494c64602d9258380d Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 3 Oct 2015 21:53:03 -0700 Subject: [PATCH] libobs/util: Save filename in config_create Fixes a bug where config_save could not save the file due to the fact that it did not store the path of the file as it was supposed to. --- libobs/util/config-file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libobs/util/config-file.c b/libobs/util/config-file.c index 0966b744d..a23d8d663 100644 --- a/libobs/util/config-file.c +++ b/libobs/util/config-file.c @@ -70,6 +70,7 @@ config_t *config_create(const char *file) fclose(f); config = bzalloc(sizeof(struct config_data)); + config->file = bstrdup(file); return config; }