Merge pull request #1214 from bpay/cppcheck-cleaning

Fix some issues flagged by cppcheck
This commit is contained in:
Daniel Buckmaster 2015-03-01 18:27:40 +11:00
commit 497a15cfd0
38 changed files with 96 additions and 42 deletions

View file

@ -2179,6 +2179,7 @@ void CMDerror(char *format, ...)
#else
vsnprintf( tempBuf, BUFMAX, format, args );
#endif
va_end(args);
if(fileName)
{

View file

@ -250,6 +250,7 @@ void CMDerror(char *format, ...)
#else
vsnprintf( tempBuf, BUFMAX, format, args );
#endif
va_end(args);
if(fileName)
{

View file

@ -1162,6 +1162,7 @@ const char *evaluatef(const char* string, ...)
va_list args;
va_start(args, string);
dVsprintf(buffer, sizeof(buffer), string, args);
va_end(args);
CodeBlock *newCodeBlock = new CodeBlock();
return newCodeBlock->compileExec(NULL, buffer, false, 0);
}