about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-16 14:41:52 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-16 14:41:52 +0100
commit5d2037aa0c1a9d7282f70475942ad9adca69264e (patch)
tree70510ebb0b70fbc3916fa45e31c114275b0e336b
parent0044da01ee4c04d2e3e6383f78303ea5c11b4fc5 (diff)
downloadprofani-tty-5d2037aa0c1a9d7282f70475942ad9adca69264e.tar.gz
profanity.c: move var into function
-rw-r--r--src/profanity.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index c15146b4..eb829bad 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -91,12 +91,13 @@ static void _shutdown(void);
 static void _connect_default(const char* const account);
 
 pthread_mutex_t lock;
-static gboolean cont = TRUE;
 static gboolean force_quit = FALSE;
 
 void
 prof_run(char* log_level, char* account_name, char* config_file, char* log_file, char* theme_name)
 {
+    gboolean cont = TRUE;
+
     _init(log_level, config_file, log_file, theme_name);
     plugins_on_start();
     _connect_default(account_name);