From: tb Date: Fri, 12 Mar 2021 15:57:30 +0000 (+0000) Subject: Zap a useless variable. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e8085cf369534cbe18980f85f87ade79cbb383f4;p=openbsd Zap a useless variable. suggested by jsing --- diff --git a/lib/libcrypto/x509/x509_constraints.c b/lib/libcrypto/x509/x509_constraints.c index 2557dd0a890..5fbcef304fb 100644 --- a/lib/libcrypto/x509/x509_constraints.c +++ b/lib/libcrypto/x509/x509_constraints.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_constraints.c,v 1.14 2021/03/12 15:55:26 tb Exp $ */ +/* $OpenBSD: x509_constraints.c,v 1.15 2021/03/12 15:57:30 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -123,8 +123,6 @@ int x509_constraints_names_add(struct x509_constraints_names *names, struct x509_constraints_name *name) { - size_t i = names->names_count; - if (names->names_count >= names->names_max) return 0; if (names->names_count == names->names_len) { @@ -135,7 +133,7 @@ x509_constraints_names_add(struct x509_constraints_names *names, names->names_len += 32; names->names = tmp; } - names->names[i] = name; + names->names[names->names_count] = name; names->names_count++; return 1; }