mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
tests: Add missing va_end in cmd/command-t
Every va_start call is supposed to be paired with a matching va_end call, but 'checkList' is missing any call to va_end. This doesn't currently seem to cause any visible problems, but add the matching va_end to avoid potential future issues. Change-Id: I569618823f39f4da5b1787cc49c5509d8ea37528 Reviewed-on: https://gerrit.openafs.org/14704 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
91a576142e
commit
ee8be26e58
@ -72,6 +72,7 @@ checkList(struct cmd_item *list, ...)
|
||||
list = list->next;
|
||||
el = va_arg(ap, char *);
|
||||
}
|
||||
va_end(ap);
|
||||
|
||||
if (el == NULL && list == NULL) {
|
||||
ok(1, "List has correct number of elements");
|
||||
|
Loading…
Reference in New Issue
Block a user