From 135d254a0339e2f01274f0b4ee63a7ebf635c861 Mon Sep 17 00:00:00 2001 From: octo Date: Sun, 19 Feb 2006 09:37:28 +0000 Subject: [PATCH] Missed one `strcmp' --- src/battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battery.c b/src/battery.c index ab5a0424..d467ecc8 100644 --- a/src/battery.c +++ b/src/battery.c @@ -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; -- 2.30.2