Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DocumentTemplate-2.13.2
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
DocumentTemplate-2.13.2
Commits
dddc26d5
Commit
dddc26d5
authored
Nov 03, 2016
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if the argument of MM_pop is not NULL but an empty tuple, don't unpack it
parent
3e0cf473
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/DocumentTemplate/cDocumentTemplate.c
src/DocumentTemplate/cDocumentTemplate.c
+1
-1
No files found.
src/DocumentTemplate/cDocumentTemplate.c
View file @
dddc26d5
...
...
@@ -231,7 +231,7 @@ MM_pop(MM *self, PyObject *args)
int
i
=
1
,
l
;
PyObject
*
r
;
if
(
args
)
UNLESS
(
PyArg_ParseTuple
(
args
,
"i"
,
&
i
))
return
NULL
;
if
(
args
&&
PyTuple_Size
(
args
)
!=
0
)
UNLESS
(
PyArg_ParseTuple
(
args
,
"i"
,
&
i
))
return
NULL
;
if
((
l
=
PyList_Size
(
self
->
data
))
<
0
)
return
NULL
;
i
=
l
-
i
;
UNLESS
(
r
=
PySequence_GetItem
(
self
->
data
,
l
-
1
))
return
NULL
;
...
...
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