[tidy] modernize-use-nullptr

This commit is contained in:
Bruno de Oliveira Abinader
2017-05-11 11:57:57 +03:00
parent 12dba86fac
commit bd7fb64bae
3 changed files with 16 additions and 16 deletions

View File

@@ -80,8 +80,8 @@ size_t getCurrentRSS( )
#elif defined(__linux__) || defined(__linux) || defined(linux) || defined(__gnu_linux__)
/* Linux ---------------------------------------------------- */
long rss = 0L;
FILE* fp = NULL;
if ( (fp = fopen( "/proc/self/statm", "r" )) == NULL )
FILE* fp = nullptr;
if ( (fp = fopen( "/proc/self/statm", "r" )) == nullptr )
return (size_t)0L; /* Can't open? */
if ( fscanf( fp, "%*s%ld", &rss ) != 1 )
{