Code

status_bar: initialize the "buffer" variable with --enable-mini
[ncmpc.git] / src / status_bar.c
index 5aaf04bc6d3c2463e852ab241cf50123010684c3..b778bc032e2af97b5198bf394611e76200e3b404 100644 (file)
@@ -150,8 +150,8 @@ status_bar_paint(const struct status_bar *p, const struct mpd_status *status,
                        time(&timep);
                        strftime(buffer, sizeof(buffer), "%X ",localtime(&timep));
                } else
-                       buffer[0] = 0;
 #endif
+                       buffer[0] = 0;
        }
 
        /* display song */