diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main.c b/main.c index 2d9c44b7..50a9f1a5 100644 --- a/main.c +++ b/main.c @@ -4,13 +4,14 @@ int main(void) { - int exit_status = LOGIN_FAIL; + int exit_status; + log_init(); gui_init(); - while (exit_status == LOGIN_FAIL) { + do { exit_status = profanity_start(); - } + } while (exit_status == LOGIN_FAIL); gui_close(); log_close(); |