From: Batuhan Taskaya Date: Sat, 24 Jul 2021 17:49:17 +0000 (+0300) Subject: bpo-43950: check against the raw string, not the pyobject (GH-27337) X-Git-Tag: v3.11.0a1~585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef8b8535cb3cd705392af9b927d6ff336d98427d;p=thirdparty%2FPython%2Fcpython.git bpo-43950: check against the raw string, not the pyobject (GH-27337) --- diff --git a/Python/traceback.c b/Python/traceback.c index 9418236abbf5..61e6838e17e4 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -605,7 +605,7 @@ extract_anchors_from_line(PyObject *filename, PyObject *line, } const char *segment_str = PyUnicode_AsUTF8(segment); - if (!segment) { + if (!segment_str) { goto done; }