Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
de60347b
Commit
de60347b
authored
Nov 18, 2008
by
Hirokazu Yamamoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #4313: Fixed segfault on IDLE exit. Reverted r57540 and reopened Issue #1028.
parent
e56131b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
Modules/_tkinter.c
Modules/_tkinter.c
+2
-8
No files found.
Modules/_tkinter.c
View file @
de60347b
...
...
@@ -1906,7 +1906,7 @@ static int
PythonCmd
(
ClientData
clientData
,
Tcl_Interp
*
interp
,
int
argc
,
char
*
argv
[])
{
PythonCmd_ClientData
*
data
=
(
PythonCmd_ClientData
*
)
clientData
;
PyObject
*
self
,
*
func
,
*
arg
,
*
res
,
*
s
;
PyObject
*
self
,
*
func
,
*
arg
,
*
res
;
int
i
,
rv
;
Tcl_Obj
*
obj_res
;
...
...
@@ -1923,13 +1923,7 @@ PythonCmd(ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
return
PythonCmd_Error
(
interp
);
for
(
i
=
0
;
i
<
(
argc
-
1
);
i
++
)
{
if
(
11
==
(
i
+
1
))
{
/* the %A arg is the unicode char */
char
*
a
=
argv
[
i
+
1
];
s
=
PyUnicode_FromUnicode
((
Py_UNICODE
*
)
a
,
strlen
(
a
));
}
else
{
s
=
PyUnicode_FromString
(
argv
[
i
+
1
]);
}
PyObject
*
s
=
PyUnicode_FromString
(
argv
[
i
+
1
]);
if
(
!
s
||
PyTuple_SetItem
(
arg
,
i
,
s
))
{
Py_DECREF
(
arg
);
return
PythonCmd_Error
(
interp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment