diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-12-11 07:17:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-12-11 07:17:09 +0000 |
commit | 38316e048327f9ea3aedc3825925ff68946fcbf8 (patch) | |
tree | 90802e752c20262bb4c3508695bc99e7dc3bd5e4 /epan/to_str.c | |
parent | 229b262e1581af69ef13db11199d57105742c05d (diff) |
The pointer is "tmp", not "tm".
svn path=/trunk/; revision=31237
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 0cd9937602..6e0b827ce1 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -329,11 +329,11 @@ abs_time_to_str(nstime_t *abs_time, gboolean show_as_utc) #if defined(HAVE_TM_ZONE) zonename = tmp->tm_zone; #elif defined(HAVE_TZNAME) - zonename = tzname[tm->tm_isdst]; + zonename = tzname[tmp->tm_isdst]; #elif _WIN32 - zonename = _tzname[tm->tm_isdst]; + zonename = _tzname[tmp->tm_isdst]; #else - zonename = tm->tm_isdst ? "?ST" : "?DT"; + zonename = tmp->tm_isdst ? "?ST" : "?DT"; #endif } if (tmp) { @@ -374,11 +374,11 @@ abs_time_secs_to_str(time_t abs_time, gboolean show_as_utc) #if defined(HAVE_TM_ZONE) zonename = tmp->tm_zone; #elif defined(HAVE_TZNAME) - zonename = tzname[tm->tm_isdst]; + zonename = tzname[tmp->tm_isdst]; #elif _WIN32 - zonename = _tzname[tm->tm_isdst]; + zonename = _tzname[tmp->tm_isdst]; #else - zonename = tm->tm_isdst ? "?ST" : "?DT"; + zonename = tmp->tm_isdst ? "?ST" : "?DT"; #endif } if (tmp) { |