diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-09 09:20:53 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-09 09:20:53 +0100 |
commit | e4c527b0f07b91fb3cd9ba58ba057dfea9da9356 (patch) | |
tree | 9f6b3ed5ecc616d71d7d188a08eddccac94a75a7 /screen.c | |
parent | a6f10d6541be679b0ca328ba85fa44d2935937cd (diff) |
check all mem allocations
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -422,7 +422,7 @@ void init_screen(){ screen.num = HEIGHT; if (screen.l == NULL){ perror("allocating screen"); - cleanup(-1); + cleanup(1); } for (i=0; i<HEIGHT; i++){ alloc_line(&(screen.l[i])); |