Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ace3c87

Browse files
[[ CID 90610 ]] Return the appropriate error when Enumerating the zip items fails
1 parent f08f1b0 commit ace3c87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

revzip/src/revzip.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,10 @@ void revZipEnumerateItems(char *p_arguments[], int p_argument_count, char **r_re
12751275
{
12761276
std::string t_outerr = "ziperr," + std::string((zip_strerror(t_archive)));
12771277
t_result = strdup(t_outerr.c_str());
1278-
t_error = False;
1278+
// SN-2015-06-02: [[ CID 90610 ]] Quit the loop if an error is
1279+
// encountered - and set t_error to the right value.
1280+
t_error = True;
1281+
break;
12791282
}
12801283
else
12811284
{

0 commit comments

Comments
 (0)