From 73d357f0a5a890aebdd473defa4979246eb3dd7c Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 26 Nov 2014 13:53:06 +0100 Subject: battstat: Suggest parenthesis around assignment used as truth value Based on gnome-applets commit: 3d51417f06ac5e4177e22ff970d7906e2802ff48 From: Benjamin Otte --- battstat/acpi-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1