aboutsummaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-11 23:20:34 +0100
committercbdev <cb@cbcdn.com>2019-12-11 23:20:34 +0100
commitf6d6eefe9bb9934f4fa3e665734d746f02471cdb (patch)
tree4f177149cd7a39ba0214b0edf337362c7ead3234 /config.c
parentf65fb8baaba285f5ff4b02af111420ba4479f5d9 (diff)
downloadmidimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.tar.gz
midimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.tar.bz2
midimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.zip
Simplify plugin_stop API
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index 0b9173e..c7e2f7e 100644
--- a/config.c
+++ b/config.c
@@ -317,6 +317,7 @@ int config_read(char* cfg_filepath){
size_t line_alloc = 0;
ssize_t status;
map_type mapping_type = map_rtl;
+ FILE* source = NULL;
char* line_raw = NULL, *line, *separator;
//create heap copy of file name because original might be in readonly memory
@@ -346,7 +347,7 @@ int config_read(char* cfg_filepath){
source_file = source_dir;
}
- FILE* source = fopen(source_file, "r");
+ source = fopen(source_file, "r");
if(!source){
fprintf(stderr, "Failed to open configuration file for reading\n");