From cda8171feb76bcb405350fd8341d42a0300e2f4b Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Wed, 09 May 2018 22:38:02 +0000
Subject: [PATCH] Merge pull request #765 from HotChick91/AlexeyAB-code

---
 src/image.c |    2 +-
 src/utils.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/image.c b/src/image.c
index d45fc79..ba5d60c 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1691,7 +1691,7 @@
     unsigned char *data = stbi_load(filename, &w, &h, &c, channels);
     if (!data) {
         fprintf(stderr, "Cannot load image \"%s\"\nSTB Reason: %s\n", filename, stbi_failure_reason());
-        exit(0);
+        exit(1);
     }
     if(channels) c = channels;
     int i,j,k;
diff --git a/src/utils.c b/src/utils.c
index 8c14fb6..1553ff7 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -208,19 +208,19 @@
 {
     perror(s);
     assert(0);
-    exit(-1);
+    exit(1);
 }
 
 void malloc_error()
 {
     fprintf(stderr, "Malloc error\n");
-    exit(-1);
+    exit(1);
 }
 
 void file_error(char *s)
 {
     fprintf(stderr, "Couldn't open file: %s\n", s);
-    exit(0);
+    exit(1);
 }
 
 list *split_str(char *s, char delim)

--
Gitblit v1.10.0