From c6f074ba9616b35ce6e30b2ac03e8d6b6b719b8f Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 23 Sep 2010 09:40:23 +0000 Subject: [PATCH] nfc-poll: fix a potential segfault (Thanks to Phil) --- examples/nfc-poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nfc-poll.c b/examples/nfc-poll.c index a9f173d..8364615 100644 --- a/examples/nfc-poll.c +++ b/examples/nfc-poll.c @@ -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);