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

Commit 9a7d3a3

Browse files
[[ Bug 14413 ]] Fix wrong if statement
1 parent 8348f84 commit 9a7d3a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

revzip/src/revzip.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ void revZipEnumerateItems(char *p_arguments[], int p_argument_count, char **r_re
12801280
else
12811281
{
12821282
char *t_converted_name;
1283-
int t_success;
1283+
int t_success;
12841284

12851285
// SN-2015-03-10: [[ Bug 14413 ]] We convert the string to UTF-8
12861286
// in case it was natively encoded, as revZipEnumerateItems is
@@ -1291,9 +1291,9 @@ void revZipEnumerateItems(char *p_arguments[], int p_argument_count, char **r_re
12911291
t_converted_name = strdup(t_stat.name);
12921292
}
12931293
else
1294-
t_converted_name = ConvertCStringFromNativeToUTF8(t_stat.name, &t_success);
1294+
t_converted_name = ConvertCStringFromNativeToUTF8(t_stat.name, &t_success);
12951295

1296-
if (t_success)
1296+
if (t_success == EXTERNAL_SUCCESS)
12971297
{
12981298
t_str_names += std::string(t_converted_name);
12991299
t_str_names += "\n";

0 commit comments

Comments
 (0)