Fix bug introduced in some signal traps where context was not declared
This commit is contained in:
parent
03bc30f116
commit
4822bb3e42
7 changed files with 7 additions and 7 deletions
|
|
@ -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)");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue