diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 7812b10a3..cdd7d4a4e 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -64,7 +64,7 @@ static const char * const call_func_white_list[] = , "perror", "popen" ,"posix_fadvise", "posix_fallocate", "pread" , "printf", "psignal", "putenv", "puts", "pwrite", "qsort", "read", "readahead", "readdir", "readdir_r" , "readlink", "readv" - , "realloc", "regcomp", "remove", "rename", "return", "rewind", "rewinddir", "rindex" + , "realloc", "regcomp", "remove", "rename", "return", "rewind", "rewinddir", "rindex" , "rmdir" ,"scandir", "scanf", "seekdir" , "setbuf", "setbuffer", "sethostname", "setlinebuf", "setlocale" ,"setvbuf", "snprintf", "sprintf", "sscanf" , "stat", "stpcpy", "strcasecmp", "strcat", "strchr", "strcmp", "strcoll" diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index d24684150..566839852 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -122,7 +122,7 @@ unsigned int CppCheck::check() std::list configurations; std::string filedata = ""; - if ( (!_fileContents.empty()) && (_fileContents.find(_filenames[c]) != _fileContents.end())) + if ((!_fileContents.empty()) && (_fileContents.find(_filenames[c]) != _fileContents.end())) { // File content was given as a string std::istringstream iss(_fileContents[ _filenames[c] ]);