[gnome-applets/gtk3: 6/23] battstat: Suggest parenthesis around assignment used as truth value
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/gtk3: 6/23] battstat: Suggest parenthesis around assignment used as truth value
- Date: Thu, 28 Oct 2010 13:08:57 +0000 (UTC)
commit e7035dc417184d5f0d172add9635feeb37e8ba0b
Author: Benjamin Otte <otte redhat com>
Date: Fri Aug 20 13:40:20 2010 +0200
battstat: Suggest parenthesis around assignment used as truth value
https://bugzilla.gnome.org/show_bug.cgi?id=627490
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 570ed26..0c8bed4 100644
--- a/battstat/acpi-linux.c
+++ b/battstat/acpi-linux.c
@@ -249,7 +249,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]