summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2013-04-21 17:52:51 +0200
committerPali Rohár <pali.rohar@gmail.com>2013-04-21 17:52:51 +0200
commit0cd7a0c2cc67b0623f19ac2da8555228842f6350 (patch)
tree17f90c49a34376274aef7eeb77d8738f6872002b
parent79832d928911fdebc129cd49fc42e60e0bd3870f (diff)
download0xFFFF-0cd7a0c2cc67b0623f19ac2da8555228842f6350.tar.bz2
image: image_read returns unsigned type
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index c5f93a2..f5b2bf6 100644
--- a/src/image.c
+++ b/src/image.c
@@ -368,7 +368,7 @@ size_t image_read(struct image * image, void * buf, size_t count) {
IMAGE_STORE_CUR(image);
if ( ret < 0 )
- return ret;
+ return 0;
}