nfc-poll: fix a potential segfault (Thanks to Phil)
This commit is contained in:
parent
e2a2557396
commit
c6f074ba96
1 changed files with 1 additions and 1 deletions
|
@ -137,8 +137,8 @@ main (int argc, const char *argv[])
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nfc_disconnect (pnd);
|
|
||||||
nfc_perror (pnd, "nfc_initiator_poll_targets");
|
nfc_perror (pnd, "nfc_initiator_poll_targets");
|
||||||
|
nfc_disconnect (pnd);
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
nfc_disconnect (pnd);
|
nfc_disconnect (pnd);
|
||||||
|
|
Loading…
Reference in a new issue