Code

clock: don't initialize static variables with zero
authorMax Kellermann <max@duempel.org>
Mon, 15 Sep 2008 10:27:28 +0000 (12:27 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 15 Sep 2008 10:27:28 +0000 (12:27 +0200)
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.

src/screen_clock.c

index dee3e1e3e0edbb21f3700ecca1b134e80abf9f04..d55328189417c5c6dcb470f3da32a5439fdf1122 100644 (file)
@@ -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 */