diff options
author | cbdev <cb@cbcdn.com> | 2019-12-11 23:20:34 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-12-11 23:20:34 +0100 |
commit | f6d6eefe9bb9934f4fa3e665734d746f02471cdb (patch) | |
tree | 4f177149cd7a39ba0214b0edf337362c7ead3234 /config.c | |
parent | f65fb8baaba285f5ff4b02af111420ba4479f5d9 (diff) | |
download | midimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.tar.gz midimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.tar.bz2 midimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.zip |
Simplify plugin_stop API
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); |