summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2015-01-12 13:18:26 +0000
committerMichal Marek <mmarek@suse.cz>2015-01-27 16:52:43 +0100
commitb6a2ab2cd4739a9573ed41677e53171987b8da34 (patch)
tree4e6ac17be1d518a43e1da01d46e6e628b375c909 /scripts
parent09950bc256e3628d275f90e016e6f5a039fbdcab (diff)
downloadop-kernel-dev-b6a2ab2cd4739a9573ed41677e53171987b8da34.zip
op-kernel-dev-b6a2ab2cd4739a9573ed41677e53171987b8da34.tar.gz
kconfig: use va_end to match corresponding va_start
Although on some systems va_end is a no-op, it is good practice to use va_end, especially since the manual states: "Each invocation of va_start() must be matched by a corresponding invocation of va_end() in the same function." Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/confdata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index f88d90f..28df18d 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -59,6 +59,7 @@ static void conf_message(const char *fmt, ...)
va_start(ap, fmt);
if (conf_message_callback)
conf_message_callback(fmt, ap);
+ va_end(ap);
}
const char *conf_get_configname(void)
OpenPOWER on IntegriCloud