Bug 217121 - Save Page does not work. Fixing a crash in prtime's PR_FormatTime method on Darwin caused by an uninitialized variable. r=wtc. a=asa MOZILLA_1_5_BRANCH FIREBIRD_0_7_1_RELEASE MOZILLA_1_5_1_RELEASE
authorben%bengoodger.com
Sun, 26 Oct 2003 22:18:09 +0000
branchMOZILLA_1_5_BRANCH
changeset 2959 a2b549d7864d
parent 2891 2e3bb0beddaf
push idunknown
push userunknown
push dateunknown
reviewerswtc, asa
bugs217121
Bug 217121 - Save Page does not work. Fixing a crash in prtime's PR_FormatTime method on Darwin caused by an uninitialized variable. r=wtc. a=asa
pr/src/misc/prtime.c
--- a/pr/src/misc/prtime.c
+++ b/pr/src/misc/prtime.c
@@ -1661,17 +1661,17 @@ PR_FormatTime(char *buf, int buflen, con
     a.tm_isdst = tm->tm_params.tp_dst_offset ? 1 : 0;
 
 /*
  * On some platforms, for example SunOS 4, struct tm has two additional
  * fields: tm_zone and tm_gmtoff.
  */
 
 #if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \
-        || defined(NETBSD)
+        || defined(NETBSD) || defined(DARWIN)
     a.tm_zone = NULL;
     a.tm_gmtoff = tm->tm_params.tp_gmt_offset + tm->tm_params.tp_dst_offset;
 #endif
 
     return strftime(buf, buflen, fmt, &a);
 }