diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
commit | 1f0ff952055c920c8671a1587c622e4df8b4a99d (patch) | |
tree | 67b736d01f9b4f811c6163f6bc41e3962889f6c5 /src | |
parent | 001ff5ee87b755c8c5371690222fc3ac16ba0602 (diff) | |
download | mpd-1f0ff952055c920c8671a1587c622e4df8b4a99d.tar.gz mpd-1f0ff952055c920c8671a1587c622e4df8b4a99d.tar.xz mpd-1f0ff952055c920c8671a1587c622e4df8b4a99d.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/screen_clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_clock.c b/src/screen_clock.c index dee3e1e3e..d55328189 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 */ |