Commit 6aa1f800 authored by Sean McBride's avatar Sean McBride Committed by Brad King

SystemInformation: Fix clang -Wtautological-pointer-compare warning

warning: comparison of array 'unameInfo.release' not equal to a null
         pointer is always true [-Wtautological-pointer-compare]
  if( unameInfo.release!=0 && strlen(unameInfo.release)>=3 )
      ~~~~~~~~~~^~~~~~~  ~

Indeed an array declared as 'char foo[x]' can never be NULL.
Removed check against null.

Change-Id: I0352ad50049d926e78b9ecc796493e898b1bfdb7
parent fb77be5a
......@@ -3786,7 +3786,7 @@ bool SystemInformationImplementation::QueryLinuxMemory()
return false;
}
if( unameInfo.release!=0 && strlen(unameInfo.release)>=3 )
if( strlen(unameInfo.release)>=3 )
{
// release looks like "2.6.3-15mdk-i686-up-4GB"
char majorChar=unameInfo.release[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment