diff options
author | Jeremy Allison <jra@samba.org> | 2004-11-18 19:03:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-11-18 19:03:17 +0000 |
commit | 4a94cbed11905462a5b3185fa80da9626537ec52 (patch) | |
tree | 33cf9a8bce94e5ac59378f794eae695e14734d91 /source/lib/charcnv.c | |
parent | 800e3c2478923b075aa76dca1b96cc1830699bbf (diff) | |
download | samba-4a94cbed11905462a5b3185fa80da9626537ec52.tar.gz samba-4a94cbed11905462a5b3185fa80da9626537ec52.tar.xz samba-4a94cbed11905462a5b3185fa80da9626537ec52.zip |
r3857: Shut up gcc about erroneous "used uninitialised" warning.
Jeremy.
Diffstat (limited to 'source/lib/charcnv.c')
-rw-r--r-- | source/lib/charcnv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c index 0fe1f15ed5d..95e24609cdf 100644 --- a/source/lib/charcnv.c +++ b/source/lib/charcnv.c @@ -372,7 +372,7 @@ size_t convert_string(charset_t from, charset_t to, unsigned char *q = (unsigned char *)dest; size_t slen = srclen; size_t dlen = destlen; - unsigned char lastp; + unsigned char lastp = '\0'; size_t retval = 0; /* If all characters are ascii, fast path here. */ @@ -408,7 +408,7 @@ size_t convert_string(charset_t from, charset_t to, size_t retval = 0; size_t slen = srclen; size_t dlen = destlen; - unsigned char lastp; + unsigned char lastp = '\0'; /* If all characters are ascii, fast path here. */ while (((slen == (size_t)-1) || (slen >= 2)) && dlen) { @@ -444,7 +444,7 @@ size_t convert_string(charset_t from, charset_t to, size_t retval = 0; size_t slen = srclen; size_t dlen = destlen; - unsigned char lastp; + unsigned char lastp = '\0'; /* If all characters are ascii, fast path here. */ while (slen && (dlen >= 2)) { |