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:
Andrew Deason 2021-07-18 20:55:57 -05:00 committed by Benjamin Kaduk
parent 91a576142e
commit ee8be26e58

View File

@ -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");