]> Dogcows Code - chaz/tint2/commitdiff
Fix undefined reference to `cleanup_battery' when using --disable-battery.
authorChristian Ruppert <Spooky85@gmail.com>
Mon, 2 Nov 2009 22:16:09 +0000 (22:16 +0000)
committerChristian Ruppert <Spooky85@gmail.com>
Mon, 2 Nov 2009 22:16:09 +0000 (22:16 +0000)
src/config.c

index 5a627040b6e761e84ea169bcc47edab5761fb89a..f7e6d60737c56698bb5a4b59853a857919088d42 100644 (file)
@@ -73,7 +73,9 @@ void init_config()
 
        // tint2 could reload config, so we cleanup objects
        cleanup_systray();
+#ifdef ENABLE_BATTERY
        cleanup_battery();
+#endif
        cleanup_clock();
        cleanup_tooltip();
 
This page took 0.023208 seconds and 4 git commands to generate.