summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_utctm.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-06-05 13:47:29 +0000
committerRichard Levitte <levitte@openssl.org>2002-06-05 13:47:29 +0000
commitb6fc2386f0e80e1280fd1ca8fb6b9ee848ae4f74 (patch)
tree816d94e440a22373fd256c3bad5d052ae641394a /crypto/asn1/a_utctm.c
parent9f353dd662b3287f0fc7d7dde53b2ddefc96e5ec (diff)
It's not good to have a pointer point at something in an inner block.
PR: 66
Diffstat (limited to 'crypto/asn1/a_utctm.c')
-rw-r--r--crypto/asn1/a_utctm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/asn1/a_utctm.c b/crypto/asn1/a_utctm.c
index ed2d827db2..dbb4a42c9d 100644
--- a/crypto/asn1/a_utctm.c
+++ b/crypto/asn1/a_utctm.c
@@ -222,6 +222,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t)
{
struct tm *tm;
+ struct tm data;
int offset;
int year;
@@ -238,7 +239,7 @@ int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t)
t -= offset*60; /* FIXME: may overflow in extreme cases */
- { struct tm data; tm = OPENSSL_gmtime(&t, &data); }
+ tm = OPENSSL_gmtime(&t, &data);
#define return_cmp(a,b) if ((a)<(b)) return -1; else if ((a)>(b)) return 1
year = g2(s->data);