7033N/AThe 'uname' part is necessary because the uname() function returns a
7033N/Anon-negative value.
7033N/A
7033N/Adiff --git a/widget/GfxInfoX11.cpp b/widget/GfxInfoX11.cpp
7033N/A--- a/widget/GfxInfoX11.cpp
7033N/A+++ b/widget/GfxInfoX11.cpp
7033N/A@@ -135,7 +136,7 @@
7033N/A // only useful for Linux kernel version check for FGLRX driver.
7033N/A // assumes X client == X server, which is sad.
7033N/A struct utsname unameobj;
7033N/A- if (!uname(&unameobj))
7033N/A+ if (uname(&unameobj) >= 0)
7033N/A {
7033N/A mOS.Assign(unameobj.sysname);
7033N/A mOSRelease.Assign(unameobj.release);