Content-Length: 260135 | pFad | http://github.com/postgrespro/postgres/commit/58bc4747be26f6849ca38e67e24abdd6aecba3b1

F8 Add missing va_end() call to a early exit in dmetaphone.c's StringAt(). · postgrespro/postgres@58bc474 · GitHub
Skip to content

Commit 58bc474

Browse files
committed
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.
1 parent 0398ece commit 58bc474

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/fuzzystrmatch/dmetaphone.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ StringAt(metastring *s, int start, int length,...)
359359
{
360360
test = va_arg(ap, char *);
361361
if (*test && (strncmp(pos, test, length) == 0))
362+
{
363+
va_end(ap);
362364
return 1;
365+
}
363366
}
364367
while (strcmp(test, "") != 0);
365368

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/58bc4747be26f6849ca38e67e24abdd6aecba3b1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy