From 2f50d37991445ab7894ad9f878ddd736082e7fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 11 May 2006 11:22:50 +0000 Subject: [PATCH] (file_init): Avoid shadowing ret (and thus avoiding crashing). git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17532 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ks_file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/hx509/ks_file.c b/lib/hx509/ks_file.c index 36babf622..3ad59f564 100644 --- a/lib/hx509/ks_file.c +++ b/lib/hx509/ks_file.c @@ -415,9 +415,9 @@ file_init(hx509_context context, const char *residue, hx509_lock lock) { char *files = NULL, *p, *pnext; - int ret; struct ks_file *f = NULL; struct hx509_collector *c; + int ret; *data = NULL; @@ -456,7 +456,6 @@ file_init(hx509_context context, if (!found_data) { size_t length; void *data; - int ret; ret = _hx509_map_file(p, &data, &length, NULL); if (ret) { @@ -480,7 +479,6 @@ out: free(files); _hx509_collector_free(c); - return ret; }