Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6543b45

Browse files
author
Skip Montanaro
committed
Initialize sep and seplen to suppress warning from gcc.
1 parent 528ca53 commit 6543b45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Objects/unicodeobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4013,15 +4013,15 @@ PyObject *
40134013
PyUnicode_Join(PyObject *separator, PyObject *seq)
40144014
{
40154015
PyObject *internal_separator = NULL;
4016-
const Py_UNICODE *sep;
4017-
size_t seplen;
4016+
const Py_UNICODE blank = ' ';
4017+
const Py_UNICODE *sep = ␣
4018+
size_t seplen = 1;
40184019
PyUnicodeObject *res = NULL; /* the result */
40194020
size_t res_alloc = 100; /* # allocated bytes for string in res */
40204021
size_t res_used; /* # used bytes */
40214022
Py_UNICODE *res_p; /* pointer to free byte in res's string area */
40224023
PyObject *fseq; /* PySequence_Fast(seq) */
40234024
int seqlen; /* len(fseq) -- number of items in sequence */
4024-
const Py_UNICODE blank = ' ';
40254025
PyObject *item;
40264026
int i;
40274027

0 commit comments

Comments
 (0)