summaryrefslogtreecommitdiff
path: root/lib/util/charset/convert_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/charset/convert_string.c')
-rw-r--r--lib/util/charset/convert_string.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/util/charset/convert_string.c b/lib/util/charset/convert_string.c
index 14dad61aeb..e51add2aaf 100644
--- a/lib/util/charset/convert_string.c
+++ b/lib/util/charset/convert_string.c
@@ -85,11 +85,9 @@ static bool convert_string_internal(struct smb_iconv_handle *ic,
o_len=destlen;
retval = smb_iconv(descriptor, &inbuf, &i_len, &outbuf, &o_len);
- if (retval == (size_t)-1) {
- return false;
- }
*converted_size = destlen-o_len;
- return true;
+
+ return (retval != (size_t)-1);
}
/**