mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-26 15:49:30 +00:00
Merge pull request #1214 from bpay/cppcheck-cleaning
Fix some issues flagged by cppcheck
This commit is contained in:
commit
497a15cfd0
38 changed files with 96 additions and 42 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue