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

Skip to content

Commit 6a4aff1

Browse files
author
Victor Stinner
committed
redecode_filename(): don't need to initialize variables
1 parent 5d1e343 commit 6a4aff1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static PyObject*
725725
redecode_filename(PyObject *file, const char *new_encoding,
726726
const char *errors)
727727
{
728-
PyObject *file_bytes = NULL, *new_file = NULL;
728+
PyObject *file_bytes, *new_file;
729729

730730
file_bytes = PyUnicode_EncodeFSDefault(file);
731731
if (file_bytes == NULL)

0 commit comments

Comments
 (0)