From 999c8d881299bdefd4eb123244df225260a7e302 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sun, 18 Mar 2018 22:00:55 -0400 Subject: Fix configuration system and fix race condition in survive_vive. --- src/survive_config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/survive_config.c') diff --git a/src/survive_config.c b/src/survive_config.c index 1a64828..44933fa 100644 --- a/src/survive_config.c +++ b/src/survive_config.c @@ -449,7 +449,10 @@ void config_read(SurviveContext* sctx, const char* path) { static config_entry * sc_search(SurviveContext * ctx, const char *tag ) { config_entry *cv = find_config_entry(ctx->temporary_config_values, tag); - if( !cv ) cv = find_config_entry(ctx->global_config_values, tag); + if( !cv ) + { + cv = find_config_entry(ctx->global_config_values, tag); + } return cv; } -- cgit v1.2.3