Mailing List Archive

Add missing va_end() calls in PC/launcher.c (GH-7690)
https://github.com/python/cpython/commit/3a6d752e35ad17fc00bc77b85364b1c599f4e0fe
commit: 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe
branch: master
author: Zackery Spytz <zspytz@gmail.com>
committer: Steve Dower <steve.dower@microsoft.com>
date: 2018-06-15T15:39:04-07:00
summary:

Add missing va_end() calls in PC/launcher.c (GH-7690)

files:
M PC/launcher.c

diff --git a/PC/launcher.c b/PC/launcher.c
index d43eb92a1292..455f42b617c0 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -61,6 +61,7 @@ debug(wchar_t * format, ...)
if (log_fp != NULL) {
va_start(va, format);
vfwprintf_s(log_fp, format, va);
+ va_end(va);
}
}

@@ -83,6 +84,7 @@ error(int rc, wchar_t * format, ... )

va_start(va, format);
len = _vsnwprintf_s(message, MSGSIZE, _TRUNCATE, format, va);
+ va_end(va);

if (rc == 0) { /* a Windows error */
winerror(GetLastError(), win_message, MSGSIZE);

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins
Add missing va_end() calls in PC/launcher.c (GH-7690) [ In reply to ]
https://github.com/python/cpython/commit/ba7970fd0aa145975a7651806f826c4c1b33c066
commit: ba7970fd0aa145975a7651806f826c4c1b33c066
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
committer: GitHub <noreply@github.com>
date: 2018-06-15T16:00:24-07:00
summary:

Add missing va_end() calls in PC/launcher.c (GH-7690)

(cherry picked from commit 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

files:
M PC/launcher.c

diff --git a/PC/launcher.c b/PC/launcher.c
index d717a7e3419a..417dca7cf032 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -61,6 +61,7 @@ debug(wchar_t * format, ...)
if (log_fp != NULL) {
va_start(va, format);
vfwprintf_s(log_fp, format, va);
+ va_end(va);
}
}

@@ -83,6 +84,7 @@ error(int rc, wchar_t * format, ... )

va_start(va, format);
len = _vsnwprintf_s(message, MSGSIZE, _TRUNCATE, format, va);
+ va_end(va);

if (rc == 0) { /* a Windows error */
winerror(GetLastError(), win_message, MSGSIZE);

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins
Add missing va_end() calls in PC/launcher.c (GH-7690) [ In reply to ]
https://github.com/python/cpython/commit/d9a8c829563e2c938aa7de0ffb90c5baa2f05b2d
commit: d9a8c829563e2c938aa7de0ffb90c5baa2f05b2d
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
committer: GitHub <noreply@github.com>
date: 2018-06-18T08:56:45-07:00
summary:

Add missing va_end() calls in PC/launcher.c (GH-7690)

(cherry picked from commit 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

files:
M PC/launcher.c

diff --git a/PC/launcher.c b/PC/launcher.c
index d11df437b97e..56f16eae4043 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -61,6 +61,7 @@ debug(wchar_t * format, ...)
if (log_fp != NULL) {
va_start(va, format);
vfwprintf_s(log_fp, format, va);
+ va_end(va);
}
}

@@ -83,6 +84,7 @@ error(int rc, wchar_t * format, ... )

va_start(va, format);
len = _vsnwprintf_s(message, MSGSIZE, _TRUNCATE, format, va);
+ va_end(va);

if (rc == 0) { /* a Windows error */
winerror(GetLastError(), win_message, MSGSIZE);

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins