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.
master
jp9000 2015-10-03 21:53:03 -07:00
parent b3d6d9e49d
commit 05748195a8
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ config_t *config_create(const char *file)
fclose(f); fclose(f);
config = bzalloc(sizeof(struct config_data)); config = bzalloc(sizeof(struct config_data));
config->file = bstrdup(file);
return config; return config;
} }