diff options
author | Colin Ian King <colin.king@canonical.com> | 2015-01-12 08:18:26 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-01-27 10:52:43 -0500 |
commit | b6a2ab2cd4739a9573ed41677e53171987b8da34 (patch) | |
tree | 4e6ac17be1d518a43e1da01d46e6e628b375c909 /scripts | |
parent | 09950bc256e3628d275f90e016e6f5a039fbdcab (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index f88d90f20228..28df18dd1147 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -59,6 +59,7 @@ static void conf_message(const char *fmt, ...) | |||
59 | va_start(ap, fmt); | 59 | va_start(ap, fmt); |
60 | if (conf_message_callback) | 60 | if (conf_message_callback) |
61 | conf_message_callback(fmt, ap); | 61 | conf_message_callback(fmt, ap); |
62 | va_end(ap); | ||
62 | } | 63 | } |
63 | 64 | ||
64 | const char *conf_get_configname(void) | 65 | const char *conf_get_configname(void) |