mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Add missing va_end() call to a early exit in dmetaphone.c's StringAt().
Pointed out by Coverity. Backpatch to all supported branches, the code has been that way for a long while.
This commit is contained in:
parent
ff7d46b857
commit
2d8411a0a0
1 changed files with 3 additions and 0 deletions
|
|
@ -359,7 +359,10 @@ StringAt(metastring *s, int start, int length,...)
|
|||
{
|
||||
test = va_arg(ap, char *);
|
||||
if (*test && (strncmp(pos, test, length) == 0))
|
||||
{
|
||||
va_end(ap);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
while (strcmp(test, "") != 0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue