Kaydet (Commit) 6543b45b authored tarafından Skip Montanaro's avatar Skip Montanaro

Initialize sep and seplen to suppress warning from gcc.

üst 528ca53b
...@@ -4013,15 +4013,15 @@ PyObject * ...@@ -4013,15 +4013,15 @@ PyObject *
PyUnicode_Join(PyObject *separator, PyObject *seq) PyUnicode_Join(PyObject *separator, PyObject *seq)
{ {
PyObject *internal_separator = NULL; PyObject *internal_separator = NULL;
const Py_UNICODE *sep; const Py_UNICODE blank = ' ';
size_t seplen; const Py_UNICODE *sep = ␣
size_t seplen = 1;
PyUnicodeObject *res = NULL; /* the result */ PyUnicodeObject *res = NULL; /* the result */
size_t res_alloc = 100; /* # allocated bytes for string in res */ size_t res_alloc = 100; /* # allocated bytes for string in res */
size_t res_used; /* # used bytes */ size_t res_used; /* # used bytes */
Py_UNICODE *res_p; /* pointer to free byte in res's string area */ Py_UNICODE *res_p; /* pointer to free byte in res's string area */
PyObject *fseq; /* PySequence_Fast(seq) */ PyObject *fseq; /* PySequence_Fast(seq) */
int seqlen; /* len(fseq) -- number of items in sequence */ int seqlen; /* len(fseq) -- number of items in sequence */
const Py_UNICODE blank = ' ';
PyObject *item; PyObject *item;
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment