Skip to content

Commit

Permalink
Fix properly close va_list with va_end
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexe committed Jul 3, 2021
1 parent d731556 commit d4bf0e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/message.cpp
Expand Up @@ -157,6 +157,8 @@ static void do_warn(bool enabled, const QCString &file, int line, const char *pr
vsnprintf(text.rawData()+l, bufSize-l, fmt, argsCopy);
text[bufSize-1]='\0';
format_warn(file,line,text);

va_end(argsCopy);
}

void warn(const QCString &file,int line,const char *fmt, ...)
Expand Down

0 comments on commit d4bf0e4

Please sign in to comment.