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)