Skip to content
Snippets Groups Projects
Commit 6aa1f800 authored by Sean McBride's avatar Sean McBride Committed by Brad King
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment