mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-01 06:48:05 +02:00
trivial: fix a build issue with a buggy compiler
This commit is contained in:
parent
478f2f693e
commit
91b5de93c4
1 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@
|
|||
#include <grp.h>
|
||||
#include <linux/fs.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "sysfs-utils.h"
|
||||
|
||||
|
|
@ -141,7 +142,7 @@ sysfs_get_bool (const char *dir, const char *attribute)
|
|||
result = 0;
|
||||
filename = g_build_filename (dir, attribute, NULL);
|
||||
if (g_file_get_contents (filename, &contents, NULL, NULL)) {
|
||||
if (strcmp (contents, "1") == 0)
|
||||
if (g_strcmp0 (contents, "1") == 0)
|
||||
result = TRUE;
|
||||
g_free (contents);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue