nfc-poll: fix a potential segfault (Thanks to Phil)

This commit is contained in:
Romuald Conty 2010-09-23 09:40:23 +00:00
parent e2a2557396
commit c6f074ba96

View file

@ -137,8 +137,8 @@ main (int argc, const char *argv[])
};
}
} else {
nfc_disconnect (pnd);
nfc_perror (pnd, "nfc_initiator_poll_targets");
nfc_disconnect (pnd);
exit (EXIT_FAILURE);
}
nfc_disconnect (pnd);