projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da4ddda
)
Variable declarations can't come after statements in C89.
author
Nicholas Clark
<nick@ccl4.org>
Sat, 23 Apr 2005 14:00:49 +0000
(14:00 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Sat, 23 Apr 2005 14:00:49 +0000
(14:00 +0000)
p4raw-id: //depot/perl@24309
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index
db56204
..
0bff7e7
100644
(file)
--- 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