From 1db78f41bf7457cdf351eccfa5939c98cab8697f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 5 May 1999 13:26:06 +0000 Subject: [PATCH] (show_date): Change an automatic aggregate initializer to be a static one. For SunOS4's cc. --- src/date.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/date.c b/src/date.c index 8080e99..85588dc 100644 --- a/src/date.c +++ b/src/date.c @@ -477,12 +477,14 @@ show_date (const char *format, time_t when) char *out = NULL; size_t out_length = 0; /* ISO 8601 formats, in local and UTC. See below regarding %z */ - char *iso_format_string[5][2]={ + static char *iso_format_string[5][2] = + { {"", ""}, {"%Y-%m-%d", "%Y-%m-%d"}, {"%Y-%m-%dT%H%z", "%Y-%m-%dT%HZ"}, {"%Y-%m-%dT%H:%M%z", "%Y-%m-%dT%H:%MZ"}, - {"%Y-%m-%dT%H:%M:%S%z", "%Y-%m-%dT%H:%M:%SZ"}}; + {"%Y-%m-%dT%H:%M:%S%z", "%Y-%m-%dT%H:%M:%SZ"} + }; tm = localtime (&when); -- 2.7.4