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
507eabdf
Commit
507eabdf
authored
Nov 14, 2013
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17828: va_start() must be accompanied by va_end()
CID 1128793: Missing varargs init or cleanup (VARARGS)
parent
2bcae708
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Objects/exceptions.c
Objects/exceptions.c
+7
-6
No files found.
Objects/exceptions.c
View file @
507eabdf
...
...
@@ -2632,12 +2632,6 @@ _PyErr_TrySetFromCause(const char *format, ...)
PyObject
*
new_exc
,
*
new_val
,
*
new_tb
;
va_list
vargs
;
#ifdef HAVE_STDARG_PROTOTYPES
va_start
(
vargs
,
format
);
#else
va_start
(
vargs
);
#endif
PyErr_Fetch
(
&
exc
,
&
val
,
&
tb
);
caught_type
=
(
PyTypeObject
*
)
exc
;
/* Ensure type info indicates no extra state is stored at the C level */
...
...
@@ -2690,7 +2684,14 @@ _PyErr_TrySetFromCause(const char *format, ...)
* types as well, but that's quite a bit trickier due to the extra
* state potentially stored on OSError instances.
*/
#ifdef HAVE_STDARG_PROTOTYPES
va_start
(
vargs
,
format
);
#else
va_start
(
vargs
);
#endif
msg_prefix
=
PyUnicode_FromFormatV
(
format
,
vargs
);
va_end
(
vargs
);
if
(
msg_prefix
==
NULL
)
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