[gnome-applets/rendering-cleanup: 7/12] battstat: Suggest parenthesis around assignment used as truth value



commit 0bcbba56215c9d4bd6dc69d4a44383310cbdb86c
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 dd1479f..385c825 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]