[cppcheck] Fix minor warnings in models.c and raudio.c
Errores fixes: models.c,2843 Either the condition 'fileData!=NULL' is redundant or there is possible null pointer dereference: fileData. raudio.c,805, 806, 807, 808, %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
This commit is contained in:
parent
bba10504e2
commit
b004f5231a
1 changed files with 5 additions and 5 deletions
|
|
@ -2840,10 +2840,10 @@ static Model LoadOBJ(const char *fileName)
|
|||
unsigned int materialCount = 0;
|
||||
|
||||
char *fileData = LoadFileText(fileName);
|
||||
int dataSize = strlen(fileData);
|
||||
|
||||
if (fileData != NULL)
|
||||
{
|
||||
int dataSize = strlen(fileData);
|
||||
char currentDir[1024] = { 0 };
|
||||
strcpy(currentDir, GetWorkingDirectory());
|
||||
chdir(GetDirectoryPath(fileName));
|
||||
|
|
|
|||
Loading…
Reference in a new issue