]> granicus.if.org Git - file/commitdiff
0 is not an error
authorChristos Zoulas <christos@zoulas.com>
Fri, 27 Feb 2015 21:16:38 +0000 (21:16 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 27 Feb 2015 21:16:38 +0000 (21:16 +0000)
src/readcdf.c

index a31fe0b1559d17f59e463aef8073d5b82d7349e3..77351b8c9e21fcdc4ee05c7ebaa7208f60d36c39 100644 (file)
@@ -26,7 +26,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readcdf.c,v 1.50 2015/01/02 21:29:39 christos Exp $")
+FILE_RCSID("@(#)$File: readcdf.c,v 1.51 2015/01/11 16:58:25 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -362,7 +362,7 @@ cdf_file_catalog_info(struct magic_set *ms, const cdf_info_t *info,
        int i;
 
        if ((i = cdf_read_user_stream(info, h, sat, ssat, sst,
-           dir, "Catalog", scn)) <= 0)
+           dir, "Catalog", scn)) == -1)
                return i;
 #ifdef CDF_DEBUG
        cdf_dump_catalog(&h, &scn);