From 6b639da8423aa40217f58684644f5fc8ea2c1e1a Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 13 Jul 2016 16:03:16 +0200 Subject: blaze822: fix blaze822_file return value on error --- blaze822.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blaze822.c') 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) -- cgit 1.4.1