dtc: 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>main
parent
302fca9f4c
commit
5ef2f7c2fa
1
checks.c
1
checks.c
|
@ -113,6 +113,7 @@ static inline void check_msg(struct check *c, const char *fmt, ...)
|
|||
vfprintf(stderr, fmt, ap);
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
#define FAIL(c, ...) \
|
||||
|
|
Loading…
Reference in New Issue