Code

Missed one `strcmp'
authorocto <octo>
Sun, 19 Feb 2006 09:37:28 +0000 (09:37 +0000)
committerocto <octo>
Sun, 19 Feb 2006 09:37:28 +0000 (09:37 +0000)
src/battery.c

index ab5a042465cca4c5c45d91cc48bac2755a4c90a9..d467ecc8614148181cd945941f45d616915a6f26 100644 (file)
@@ -300,7 +300,7 @@ static void battery_read (void)
                                if ((strcmp (fields[0], "charging") == 0)
                                                && (strcmp (fields[1], "state:") == 0))
                                {
-                                       if (strcmp (fields[2], "charging"))
+                                       if (strcmp (fields[2], "charging") == 0)
                                                charging = 1;
                                        else
                                                charging = 0;