Skip to content

Commit

Permalink
A function that invokes va_start, shall also invoke va_end before it …
Browse files Browse the repository at this point in the history
…returns.
  • Loading branch information
fiendish committed Mar 10, 2016
1 parent c137b97 commit 0bf9dd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dmetaph.cpp
Expand Up @@ -109,8 +109,10 @@ bool MString::StringAt(int start, int length, ... )
do
{
test = va_arg(sstrings, char*);
if(*test AND (target == test))
if(*test AND (target == test)) {
va_end(sstrings);
return true;
}

}while(strcmp(test, ""));

Expand Down

0 comments on commit 0bf9dd2

Please sign in to comment.