Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
jozsefd authored and Jakuje committed Apr 4, 2024
1 parent 1f0af54 commit 6a98d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/minidriver/minidriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,12 @@ get_pin_by_name(PCARD_DATA pCardData, struct sc_pkcs15_card *p15card, int role,
if (!conf_block)
MD_FUNC_RETURN(pCardData, 1, SCARD_F_INTERNAL_ERROR);

if ( p15card->app != NULL ) {
if (p15card->app != NULL) {
memset(str_path, 0, sizeof(str_path));
sc_bin_to_hex(p15card->app->path.value, p15card->app->path.len, str_path, sizeof(str_path), 0);
blocks = scconf_find_blocks(p15card->card->ctx->conf, conf_block, "application", str_path);
}

if (blocks) {
if (blocks[0]) {
pin = (char *)scconf_get_str(blocks[0], pin_type, NULL);
Expand Down

0 comments on commit 6a98d4a

Please sign in to comment.