From f973df9eca8291b02684316970dbbb2bea7fa5c8 Mon Sep 17 00:00:00 2001 From: beck <> Date: Mon, 14 Sep 2020 09:01:11 +0000 Subject: remove unneded variable "time" noticed by llvm static analyzer ok tb@ --- src/lib/libcrypto/x509/x509_verify.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c index 6179d19cae..7a97aed815 100644 --- a/src/lib/libcrypto/x509/x509_verify.c +++ b/src/lib/libcrypto/x509/x509_verify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_verify.c,v 1.3 2020/09/14 08:56:32 beck Exp $ */ +/* $OpenBSD: x509_verify.c,v 1.4 2020/09/14 09:01:11 beck Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -487,7 +487,6 @@ x509_verify_set_check_time(struct x509_verify_ctx *ctx) { static int x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) { - time_t time; int type; memset(tm, 0, sizeof(*tm)); @@ -517,7 +516,7 @@ x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) * a time_t. A time_t must be sane if you care about times after * Jan 19 2038. */ - if ((time = timegm(tm)) == -1) + if (timegm(tm) == -1) return 0; return 1; -- cgit v1.2.3-55-g6feb