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

@@ -52,6 +52,7 @@
#define MAX_DEVICE_COUNT 16
static nfc_device *pnd = NULL;
static nfc_context *context;
static void stop_polling(int sig)
{
@@ -105,7 +106,6 @@ main(int argc, const char *argv[])
nfc_target nt;
int res = 0;
nfc_context *context;
nfc_init(&context);
if (context == NULL) {
ERR("Unable to init libnfc (malloc)");