mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Wrong assertion/comparison: Compare value not pointer
Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 13 02:23:36 CEST 2012 on sn-devel-104
This commit is contained in:
parent
da786cddd6
commit
b8dea7e82d
@ -791,12 +791,12 @@ handle_iconv_errno(int err, const char* obuf, size_t linenum,
|
|||||||
DEBUG(0, ("Illegal multibyte sequence at line %lu: %s",
|
DEBUG(0, ("Illegal multibyte sequence at line %lu: %s",
|
||||||
(long unsigned)(linenum+1), pos));
|
(long unsigned)(linenum+1), pos));
|
||||||
|
|
||||||
assert(ilen > 0);
|
assert((*ilen) > 0);
|
||||||
do {
|
do {
|
||||||
size_t il = 1;
|
size_t il = 1;
|
||||||
DEBUGADD(0, ("<%02x>", (unsigned char)**iptr));
|
DEBUGADD(0, ("<%02x>", (unsigned char)**iptr));
|
||||||
|
|
||||||
if (olen > 0) {
|
if ((*olen) > 0) {
|
||||||
*(*optr)++ = '\?';
|
*(*optr)++ = '\?';
|
||||||
(*iptr)++;
|
(*iptr)++;
|
||||||
/* Todo: parametrize, e.g. skip: *optr++ = *iptr++; */
|
/* Todo: parametrize, e.g. skip: *optr++ = *iptr++; */
|
||||||
|
Loading…
Reference in New Issue
Block a user