summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-04-23 14:00:49 +0000
committerNicholas Clark <nick@ccl4.org>2005-04-23 14:00:49 +0000
commit82c57498f7f8f27d0d5411ddaf2f473d905b3929 (patch)
tree0a7b77d42aaa7cb0269ebf9356734fa5ca55c5ec /util.c
parentda4ddda1308ab0218fa0865029c9475e5cfe8bc6 (diff)
downloadperl-82c57498f7f8f27d0d5411ddaf2f473d905b3929.tar.gz
Variable declarations can't come after statements in C89.
p4raw-id: //depot/perl@24309
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index db5620494a..0bff7e7504 100644
--- a/util.c
+++ b/util.c
@@ -3354,8 +3354,9 @@ Perl_init_tm(pTHX_ struct tm *ptm) /* see mktime, strftime and asctime */
{
#ifdef HAS_TM_TM_ZONE
Time_t now;
+ struct tm* my_tm;
(void)time(&now);
- struct tm* my_tm = localtime(&now);
+ my_tm = localtime(&now);
if (my_tm)
Copy(my_tm, ptm, 1, struct tm);
#endif