Skip to content

Commit bb4a747

Browse files
committed
start out this branch always with filename NULL
1 parent e2d5190 commit bb4a747

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/_warnings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno,
517517
}
518518
else {
519519
const char *module_str = _PyUnicode_AsString(*module);
520-
Py_XDECREF(*filename);
520+
*filename = NULL;
521521
if (module_str == NULL)
522522
goto handle_error;
523523
if (strcmp(module_str, "__main__") == 0) {

0 commit comments

Comments
 (0)