pkcs15-isoApplet.c: fix compiler warning

pkcs15-isoApplet.c:268:38: warning: address of 'df->path' will always evaluate
      to 'true' [-Wpointer-bool-conversion]
        if(!pin || !pin_len || !df || !&df->path)
                                      ~ ~~~~^~~~
This commit is contained in:
Ludovic Rousseau 2016-02-29 18:55:59 +01:00
parent a8c741002d
commit ed30d4ebb7
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ isoApplet_create_pin(sc_profile_t *profile, sc_pkcs15_card_t *p15card, sc_file_t
LOG_FUNC_CALLED(card->ctx);
if(!pin || !pin_len || !df || !&df->path)
if(!pin || !pin_len || !df)
{
LOG_FUNC_RETURN(card->ctx, SC_ERROR_INVALID_ARGUMENTS);
}