From: Max Kellermann Date: Mon, 15 Sep 2008 10:27:28 +0000 (+0200) Subject: clock: don't initialize static variables with zero X-Git-Tag: v0.12_alpha1~321 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f0ff952055c920c8671a1587c622e4df8b4a99d;p=ncmpc.git clock: don't initialize static variables with zero Uninitialized static variables are put into BSS, which is automatically zeroed. Initializing doesn't hurt, but in this case, there were elements missing, emitting a gcc warning. --- diff --git a/src/screen_clock.c b/src/screen_clock.c index dee3e1e..d553281 100644 --- a/src/screen_clock.c +++ b/src/screen_clock.c @@ -26,7 +26,7 @@ #define ENABLE_SECONDS 0 -static window_t win = { NULL, 0, 0 }; +static window_t win; static gboolean enable_seconds = ENABLE_SECONDS; /* orginal variables from gdc.c */