diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-17 19:23:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-17 19:23:48 +0000 |
commit | 6339c4690aef7692571dd4c65dd0a12d56a7ffab (patch) | |
tree | 1c94a091be2c5ce8146f30c64029d7b2bd7fdf7b /source/lib | |
parent | 4d68d3d5ddeda9589f2e3387144fdac616bb791f (diff) | |
download | samba-6339c4690aef7692571dd4c65dd0a12d56a7ffab.tar.gz samba-6339c4690aef7692571dd4c65dd0a12d56a7ffab.tar.xz samba-6339c4690aef7692571dd4c65dd0a12d56a7ffab.zip |
Remove excess logging when probing for the length of the next mb char.
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/charcnv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c index ad15788b84a..f6028bb1341 100644 --- a/source/lib/charcnv.c +++ b/source/lib/charcnv.c @@ -1307,6 +1307,7 @@ size_t next_mb_char_size(const char *s) if (!(*s & 0x80)) return 1; /* ascii. */ + conv_silent = True; for ( i = 1; i <=4; i++ ) { smb_ucs2_t uc; if (convert_string(CH_UNIX, CH_UCS2, s, i, &uc, 2, False) == 2) { @@ -1314,10 +1315,12 @@ size_t next_mb_char_size(const char *s) DEBUG(10,("next_mb_char_size: size %u at string %s\n", (unsigned int)i, s)); #endif + conv_silent = False; return i; } } /* We're hosed - we don't know how big this is... */ DEBUG(10,("next_mb_char_size: unknown size at string %s\n", s)); + conv_silent = False; return 1; } |