From dba793110b7e21918c10cba6aa131076d1858429 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 2 Jun 2010 21:16:35 -0400 Subject: [PATCH] Fix unused variable on Windows for softp11.c --- lib/hx509/softp11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/hx509/softp11.c b/lib/hx509/softp11.c index 98ab500d9..0496b35b7 100644 --- a/lib/hx509/softp11.c +++ b/lib/hx509/softp11.c @@ -810,9 +810,11 @@ func_not_supported(void) static char * get_config_file_for_user(void) { - char *fn = NULL, *home = NULL; + char *fn = NULL; #ifndef _WIN32 + char *home = NULL; + if (!issuid()) { fn = getenv("SOFTPKCS11RC"); if (fn)