diff --git a/src/sysfs-utils.c b/src/sysfs-utils.c index 4784439..b88fa29 100644 --- a/src/sysfs-utils.c +++ b/src/sysfs-utils.c @@ -141,7 +141,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")) + if (strcmp (contents, "1") == 0) result = TRUE; g_free (contents); }