summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-09 09:20:53 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-09 09:20:53 +0100
commite4c527b0f07b91fb3cd9ba58ba057dfea9da9356 (patch)
tree9f6b3ed5ecc616d71d7d188a08eddccac94a75a7 /screen.c
parenta6f10d6541be679b0ca328ba85fa44d2935937cd (diff)
check all mem allocations
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index a124a3f..5ea21aa 100644
--- a/screen.c
+++ b/screen.c
@@ -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]));