From 8da9acd1fe1e3fd18efbbe88d9a084dcf38b26ef Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 15 Feb 2017 12:03:25 +0100 Subject: [PATCH] Rename variable --- verbosity.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/verbosity.c b/verbosity.c index 207070ea75..de42f41202 100644 --- a/verbosity.c +++ b/verbosity.c @@ -48,9 +48,9 @@ /* If this is non-NULL. RARCH_LOG and friends * will write to this file. */ -static FILE *log_file = NULL; -static bool main_verbosity = false; -static bool initialized = false; +static FILE *log_file = NULL; +static bool main_verbosity = false; +static bool log_file_initialized = false; void verbosity_enable(void) { @@ -87,14 +87,15 @@ void *retro_main_log_file(void) void retro_main_log_file_init(const char *path) { - if (initialized) + if (log_file_initialized) return; - log_file = stderr; + + log_file = stderr; if (path == NULL) return; - log_file = fopen(path, "wb"); - initialized = true; + log_file = fopen(path, "wb"); + log_file_initialized = true; } void retro_main_log_file_deinit(void)