1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
samba-mirror/lib/util/charset
Joseph Sutton 228dd73cae util:charset: Remove unreachable code (CID 1272948)
Suppose that ‘slen’ is equal to (size_t)-1. A few lines up, we had:

    if (lastp != 0) goto slow_path;

Therefore, ‘lastp’ must evaluate to false.

Now suppose that ‘slen’ is not equal to (size_t)-1. In that case, we
would have executed:

    if (slen != 0) goto slow_path;

Therefore, ‘slen’ must evaluate to false.

Consequently, this code can be seen to be unreachable.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2024-08-28 04:24:39 +00:00
..
tests lib:util:tests: more tests for codepoint_cmpi 2024-05-07 23:25:35 +00:00
charset_macosxfs.c lib:util: Fix code spelling 2023-04-14 05:25:33 +00:00
charset_proto.h s3: Fix fn signatures in charset_macosx.c 2011-12-25 13:31:58 +01:00
charset.h lib: Remove unused strnrchr_w 2024-07-04 15:26:36 +00:00
codepoints.c lib:util: codepoint_cmpi: be transitive and case-insensitive 2024-05-07 23:25:35 +00:00
convert_string.c util:charset: Remove unreachable code (CID 1272948) 2024-08-28 04:24:39 +00:00
iconv.c Combine ICU libraries icu-i18n and icu-uc into a single dependency 2024-05-10 00:26:35 +00:00
pull_push.c lib/util/charset: @param typos 2023-10-26 01:24:32 +00:00
util_str.c util: charset:util_str: use NUMERIC_CMP in strncasecmp_m_handle 2024-04-10 22:56:33 +00:00
util_unistr_w.c lib: Remove unused strnrchr_w 2024-07-04 15:26:36 +00:00
util_unistr.c util:charset: strncasecmp_ldb avoids iconv for ASCII 2024-05-22 23:12:32 +00:00
weird.c lib: Simplify "weird" charset code 2021-01-12 00:10:30 +00:00
wscript_build Combine ICU libraries icu-i18n and icu-uc into a single dependency 2024-05-10 00:26:35 +00:00
wscript_configure Restore empty string default for conf.env['icu-libs'] 2024-05-14 14:44:06 +00:00