From b125608ff676df645f7a1bf1192dba775cbd9979 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sun, 11 Jan 2015 17:00:23 +0000 Subject: [PATCH] return error on not finding stream. --- src/cdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdf.c b/src/cdf.c index 73274902..96e2d296 100644 --- 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 @@ -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, -- 2.50.1