diff options
author | infirit <[email protected]> | 2014-11-26 13:53:06 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-26 18:13:43 +0100 |
commit | 73d357f0a5a890aebdd473defa4979246eb3dd7c (patch) | |
tree | b5bb3a9c091eeb8100e7905623cdc01587afbd15 /battstat | |
parent | 8f6814ced1b31308d29c44e4522d6212d99b9db8 (diff) | |
download | mate-applets-73d357f0a5a890aebdd473defa4979246eb3dd7c.tar.bz2 mate-applets-73d357f0a5a890aebdd473defa4979246eb3dd7c.tar.xz |
battstat: Suggest parenthesis around assignment used as truth value
Based on gnome-applets commit: 3d51417f06ac5e4177e22ff970d7906e2802ff48
From: Benjamin Otte <[email protected]>
Diffstat (limited to 'battstat')
-rw-r--r-- | battstat/acpi-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/battstat/acpi-linux.c b/battstat/acpi-linux.c index 6f9512ce..2fd9f8e7 100644 --- a/battstat/acpi-linux.c +++ b/battstat/acpi-linux.c @@ -263,7 +263,7 @@ gboolean acpi_linux_init(struct acpi_info * acpiinfo) if (g_file_get_contents ("/sys/module/acpi/parameters/acpica_version", &pbuf, NULL, NULL)) { acpi_ver = strtoul (pbuf, NULL, 10); g_free (pbuf); - } else if (hash = read_file ("/proc/acpi/info", buf, sizeof (buf))) { + } else if ((hash = read_file ("/proc/acpi/info", buf, sizeof (buf)))) { acpi_ver = read_ulong (hash, "version"); g_hash_table_destroy (hash); } else |