diff options
author | kdx <kikoodx@paranoici.org> | 2023-10-27 12:14:30 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-10-27 12:14:30 +0200 |
commit | 9859bf702aa695264fc8b9a4155bf8d6932e5c70 (patch) | |
tree | 8dd5ee26a62be6e5820aed0ba5122c8b2472c3df | |
parent | 7bac5474e14d7e95fbc6be096e14a9b37f363749 (diff) | |
download | tzr-9859bf702aa695264fc8b9a4155bf8d6932e5c70.tar.gz |
TZR_Quit on chdir failure
-rw-r--r-- | sources/TZR_Init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/TZR_Init.c b/sources/TZR_Init.c index c913026..a598df4 100644 --- a/sources/TZR_Init.c +++ b/sources/TZR_Init.c @@ -38,7 +38,7 @@ _TZR_Init(const TZR_Config *config) } else chdir_rv = chdir(___tzr_config.basepath); if (chdir_rv < 0) - return perror("TZR_Init"), -1; + return perror("TZR_Init"), TZR_Quit(), -1; ___tzr_window = SDL_CreateWindow(config->title, |