diff options
author | Jeremy Allison <jra@samba.org> | 2004-11-18 19:03:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:21 -0500 |
commit | b74b9c5037c37c42c3337608774c8b0ed2611bbc (patch) | |
tree | a27ce1427e9fbae836789bbc08a03febe49a8123 /source3/lib | |
parent | c7e532496b689a04f7c7dc4144d0326e922f2e59 (diff) | |
download | samba-b74b9c5037c37c42c3337608774c8b0ed2611bbc.tar.gz samba-b74b9c5037c37c42c3337608774c8b0ed2611bbc.tar.bz2 samba-b74b9c5037c37c42c3337608774c8b0ed2611bbc.zip |
r3857: Shut up gcc about erroneous "used uninitialised" warning.
Jeremy.
(This used to be commit ac9b91d805c3ee68119d4b25ab05ed043f0ab8f1)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/charcnv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 0fe1f15ed5..95e24609cd 100644 --- a/source3/lib/charcnv.c +++ b/source3/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)) { |