mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03: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
2a0bfa4d66
commit
39cdf365a3
@ -362,7 +362,10 @@ StringAt(metastring *s, int start, int length,...)
|
|||||||
{
|
{
|
||||||
test = va_arg(ap, char *);
|
test = va_arg(ap, char *);
|
||||||
if (*test && (strncmp(pos, test, length) == 0))
|
if (*test && (strncmp(pos, test, length) == 0))
|
||||||
|
{
|
||||||
|
va_end(ap);
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
while (strcmp(test, ""));
|
while (strcmp(test, ""));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user