summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-09-16 03:28:13 (GMT)
committerSkip Montanaro <skip@pobox.com>2004-09-16 03:28:13 (GMT)
commit6543b45b0c0adfd8a91ad64997ffe507e9482b0c (patch)
tree4a59018a11450b51d39986119a33816cf8faf053
parent528ca53b7455b3307cb0e3f097ae951191521ba8 (diff)
downloadcpython-6543b45b0c0adfd8a91ad64997ffe507e9482b0c.zip
cpython-6543b45b0c0adfd8a91ad64997ffe507e9482b0c.tar.gz
cpython-6543b45b0c0adfd8a91ad64997ffe507e9482b0c.tar.bz2
Initialize sep and seplen to suppress warning from gcc.
-rw-r--r--Objects/unicodeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index a2145bf..670fca4 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -4013,15 +4013,15 @@ PyObject *
PyUnicode_Join(PyObject *separator, PyObject *seq)
{
PyObject *internal_separator = NULL;
- const Py_UNICODE *sep;
- size_t seplen;
+ const Py_UNICODE blank = ' ';
+ const Py_UNICODE *sep = &blank;
+ size_t seplen = 1;
PyUnicodeObject *res = NULL; /* the result */
size_t res_alloc = 100; /* # allocated bytes for string in res */
size_t res_used; /* # used bytes */
Py_UNICODE *res_p; /* pointer to free byte in res's string area */
PyObject *fseq; /* PySequence_Fast(seq) */
int seqlen; /* len(fseq) -- number of items in sequence */
- const Py_UNICODE blank = ' ';
PyObject *item;
int i;