c-- cppchecked

git-svn-id: svn://kolibrios.org@7626 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
siemargl
2019-04-11 07:12:30 +00:00
parent 24fde9ea89
commit 01eaae6724
8 changed files with 14 additions and 13 deletions

View File

@@ -99,7 +99,7 @@ int MultiByteToWideChar(
int cchWideChar // size of buffer
)
{
int i;
int i = 0; // fix by cppcheck
while ((lpMultiByteStr[i*2]!=0) && (lpMultiByteStr[i*2+1]!=0)) i++;
return i/2;
}
@@ -147,7 +147,7 @@ int stat (const char* path, struct _stat* buf)
char * getcwd (char *buffer, int size)
{
int len=0;
volatile int len=0; // fix by cppcheck
if (size==0){
if (buffer!=0)
return 0;