Fix bug introduced in some signal traps where context was not declared

This commit is contained in:
Philippe Teuwen 2013-03-05 23:58:35 +01:00
parent 03bc30f116
commit 4822bb3e42
7 changed files with 7 additions and 7 deletions

View file

@ -49,6 +49,7 @@
#define MAX_FRAME_LEN 264
static nfc_device *pnd;
static nfc_context *context;
static void stop_dep_communication(int sig)
{
@ -73,7 +74,6 @@ main(int argc, const char *argv[])
exit(EXIT_FAILURE);
}
nfc_context *context;
nfc_init(&context);
if (context == NULL) {
ERR("Unable to init libnfc (malloc)");