diff options
author | Olaf Flebbe <o.flebbe@science-computing.de> | 2012-04-12 11:29:41 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-04-13 02:23:35 +0200 |
commit | b8dea7e82d0acb9e55e8bfe9a089c250d7380102 (patch) | |
tree | e3ebe3f453da084a5aa68a71feb9591bec9b1b13 /source3/registry | |
parent | da786cddd68d8777cad5e3d6c6fe5a3beac2a1a7 (diff) | |
download | samba-b8dea7e82d0acb9e55e8bfe9a089c250d7380102.tar.gz samba-b8dea7e82d0acb9e55e8bfe9a089c250d7380102.tar.bz2 samba-b8dea7e82d0acb9e55e8bfe9a089c250d7380102.zip |
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
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_parse.c b/source3/registry/reg_parse.c index a112572b55..5a22fd7998 100644 --- a/source3/registry/reg_parse.c +++ b/source3/registry/reg_parse.c @@ -791,12 +791,12 @@ handle_iconv_errno(int err, const char* obuf, size_t linenum, DEBUG(0, ("Illegal multibyte sequence at line %lu: %s", (long unsigned)(linenum+1), pos)); - assert(ilen > 0); + assert((*ilen) > 0); do { size_t il = 1; DEBUGADD(0, ("<%02x>", (unsigned char)**iptr)); - if (olen > 0) { + if ((*olen) > 0) { *(*optr)++ = '\?'; (*iptr)++; /* Todo: parametrize, e.g. skip: *optr++ = *iptr++; */ |