Skip to content

Commit 17797e1

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 07bec31 commit 17797e1

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
@@ -362,7 +362,10 @@ StringAt(metastring *s, int start, int length,...)
362362
{
363363
test = va_arg(ap, char *);
364364
if (*test && (strncmp(pos, test, length) == 0))
365+
{
366+
va_end(ap);
365367
return 1;
368+
}
366369
}
367370
while (strcmp(test, ""));
368371

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy