]> granicus.if.org Git - file/commitdiff
return error on not finding stream.
authorChristos Zoulas <christos@zoulas.com>
Sun, 11 Jan 2015 17:00:23 +0000 (17:00 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 11 Jan 2015 17:00:23 +0000 (17:00 +0000)
src/cdf.c

index 73274902b78efebd856811b7e037cee72c043803..96e2d296f0c2cf5aa3879ccbac1511affa36ab97 100644 (file)
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -35,7 +35,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: cdf.c,v 1.73 2015/01/11 16:58:25 christos Exp $")
+FILE_RCSID("@(#)$File: cdf.c,v 1.74 2015/01/11 17:00:23 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -751,7 +751,7 @@ cdf_read_user_stream(const cdf_info_t *info, const cdf_header_t *h,
        int i = cdf_find_stream(dir, name, CDF_DIR_TYPE_USER_STREAM);
 
        if (i <= 0)
-               return i;
+               return -1;
 
        d = &dir->dir_tab[i - 1];
        return cdf_read_sector_chain(info, h, sat, ssat, sst,