diff options
Diffstat (limited to 'binding/afm-nfc-binding.c')
-rw-r--r-- | binding/afm-nfc-binding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/afm-nfc-binding.c b/binding/afm-nfc-binding.c index 70a8625..d5c8d0b 100644 --- a/binding/afm-nfc-binding.c +++ b/binding/afm-nfc-binding.c @@ -247,7 +247,7 @@ static int init(afb_api_t api) pthread_t thread_id; nfc_binding_data *data = get_libnfc_instance(); char **adapters = NULL; - int num_adapters, ret; + int num_adapters, ret = 0; presence_event = afb_daemon_make_event("presence"); @@ -277,7 +277,7 @@ static int init(afb_api_t api) neardal_free_array(&adapters); - return 0; + return ret; } static void subscribe(afb_req_t request) |