From: Christos Zoulas Date: Sun, 19 Aug 2018 10:38:21 +0000 (+0000) Subject: handle error properly. X-Git-Tag: FILE5_35~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56ea9fd79ff63e059cad924d3c04b38c6cf75151;p=file handle error properly. --- diff --git a/src/readcdf.c b/src/readcdf.c index eb7433b9..0305906e 100644 --- a/src/readcdf.c +++ b/src/readcdf.c @@ -26,7 +26,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readcdf.c,v 1.68 2018/07/25 07:16:21 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.69 2018/08/19 10:38:21 christos Exp $") #endif #include @@ -661,8 +661,10 @@ out2: out1: free(sat.sat_tab); out0: - if (i == -1) + /* If we handled it already, return */ + if (i != -1) return i; + /* Provide a default handler */ if (NOTMIME(ms)) { if (file_printf(ms, "Composite Document File V2 Document") == -1)