mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
CVE-2019-14907 lib/util/charset: clang: Fix Value stored to 'reason' is never read warning
Fixes:
lib/util/charset/convert_string.c:301:5: warning: Value stored to 'reason' is never read <--[clang]
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14208
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer gary@catalyst.net.nz
(cherry picked from commit add47e288b
)
This commit is contained in:
parent
16b377276e
commit
030fa9e545
@ -300,13 +300,13 @@ bool convert_string_handle(struct smb_iconv_handle *ic,
|
||||
{
|
||||
reason="No more room";
|
||||
if (from == CH_UNIX) {
|
||||
DEBUG(3,("E2BIG: convert_string(%s,%s): srclen=%u destlen=%u - '%s'\n",
|
||||
DEBUG(3,("E2BIG: convert_string(%s,%s): srclen=%u destlen=%u - '%s' error: %s\n",
|
||||
charset_name(ic, from), charset_name(ic, to),
|
||||
(unsigned int)srclen, (unsigned int)destlen, (const char *)src));
|
||||
(unsigned int)srclen, (unsigned int)destlen, (const char *)src, reason));
|
||||
} else {
|
||||
DEBUG(3,("E2BIG: convert_string(%s,%s): srclen=%u destlen=%u\n",
|
||||
DEBUG(3,("E2BIG: convert_string(%s,%s): srclen=%u destlen=%u error: %s\n",
|
||||
charset_name(ic, from), charset_name(ic, to),
|
||||
(unsigned int)srclen, (unsigned int)destlen));
|
||||
(unsigned int)srclen, (unsigned int)destlen, reason));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user