don't segfault if no config file could be found (win); thanks to Nicolas Justin <nicolas.justin@idealx.com>

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2806 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2006-01-04 18:52:52 +00:00
parent fcb7b65010
commit 9f943aa2b4
1 changed files with 4 additions and 2 deletions

View File

@ -605,8 +605,10 @@ static void process_config_file(sc_context_t *ctx, struct _sc_ctx_options *opts)
}
}
if (! conf_path)
sc_error(ctx, "process_config_file doesn't find opensc config file. Please set the registry key.");
if (! conf_path) {
sc_debug(ctx, "process_config_file doesn't find opensc config file. Please set the registry key.");
return;
}
#else
conf_path = getenv("OPENSC_CONF");