about summary refs log tree commit diff
path: root/blaze822.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 16:03:16 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 16:03:16 +0200
commit6b639da8423aa40217f58684644f5fc8ea2c1e1a (patch)
tree30f737d32d28f187e269c8cf146c9423549cab4d /blaze822.c
parentb32ef0fd5a468fa95355799b15ac365d420550d5 (diff)
downloadmblaze-6b639da8423aa40217f58684644f5fc8ea2c1e1a.tar.gz
mblaze-6b639da8423aa40217f58684644f5fc8ea2c1e1a.tar.xz
mblaze-6b639da8423aa40217f58684644f5fc8ea2c1e1a.zip
blaze822: fix blaze822_file return value on error
Diffstat (limited to 'blaze822.c')
-rw-r--r--blaze822.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index cd402f1..79b1a23 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -428,7 +428,7 @@ blaze822_file(char *file)
 {
 	int fd = open(file, O_RDONLY);
 	if (fd < 0)
-		return fd;
+		return 0;
 
 	struct stat st;
 	if (fstat(fd, &st) < 0)