Skip to content

Commit

Permalink
sysinfo: make uname() usage POSIX compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
mtelka authored and ximion committed Dec 7, 2024
1 parent f6f2b58 commit f8be161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/as-system-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ as_system_info_read_kernel_details (AsSystemInfo *sysinfo)
if (priv->kernel_name != NULL)
return;

if (uname (&utsbuf) != 0) {
if (uname (&utsbuf) < 0) {
g_warning ("Unable to read kernel information via uname: %s", g_strerror (errno));
return;
}
Expand Down

0 comments on commit f8be161

Please sign in to comment.