diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-05 08:06:19 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-05 08:06:19 +0100 |
commit | 9127db5e322c1b0cd57adf90e8cfefad66020fe2 (patch) | |
tree | a654d8c13225cb91a22d34626047a5c9eb24fa4f /screen.c | |
parent | 6bf74b8e63315aeeac6fe4307e9e2679d334aca3 (diff) |
remove atexit and replace exit() with cleanup()
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -400,7 +400,7 @@ void init_screen(){ screen.num = HEIGHT; if (screen.l == NULL){ perror("allocating screen"); - exit(1); + cleanup(-1); } for (i=0; i<HEIGHT; i++){ alloc_line(&(screen.l[i])); |