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

@ -179,6 +179,7 @@ const char* avar(const char *message, ...)
va_list args;
va_start(args, message);
dVsprintf(buffer, sizeof(buffer), message, args);
va_end(args);
return( buffer );
}

View file

@ -421,6 +421,7 @@ StringTableEntry Platform::makeRelativePathName(const char *path, const char *to
else
{
// FIXME: This condition is clearly wrong
if((*pathPtr == 0 && *toPtr == '/') || (*toPtr == '/' && *pathPtr == 0))
branch = pathPtr;