mirror of
https://github.com/python/cpython.git
synced 2026-05-07 05:01:13 -04:00
[3.14] gh-134064: Fix sys.remote_exec() error checking (GH-134067) (#134162)
gh-134064: Fix sys.remote_exec() error checking (GH-134067)
(cherry picked from commit 009e7b3698)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
committed by
GitHub
parent
1ba5e65b76
commit
eaee2ae033
+1
-1
@@ -2484,7 +2484,7 @@ sys_remote_exec_impl(PyObject *module, int pid, PyObject *script)
|
||||
PyObject *path;
|
||||
const char *debugger_script_path;
|
||||
|
||||
if (PyUnicode_FSConverter(script, &path) < 0) {
|
||||
if (PyUnicode_FSConverter(script, &path) == 0) {
|
||||
return NULL;
|
||||
}
|
||||
debugger_script_path = PyBytes_AS_STRING(path);
|
||||
|
||||
Reference in New Issue
Block a user