maybe it would be good to check he return value?
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2908 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
5dcaeccb1e
commit
156e3a574d
|
@ -706,6 +706,7 @@ int sc_context_create(sc_context_t **ctx_out, const sc_context_param_t *parm)
|
|||
load_card_drivers(ctx, &opts);
|
||||
load_card_atrs(ctx, &opts);
|
||||
if (opts.forced_card_driver) {
|
||||
/* FIXME: check return value? */
|
||||
sc_set_card_driver(ctx, opts.forced_card_driver);
|
||||
free(opts.forced_card_driver);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue