diff options
Diffstat (limited to 'wearable/app')
-rwxr-xr-x | wearable/app/src/nsa-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wearable/app/src/nsa-main.c b/wearable/app/src/nsa-main.c index 57c0845..78df7c9 100755 --- a/wearable/app/src/nsa-main.c +++ b/wearable/app/src/nsa-main.c @@ -116,7 +116,7 @@ static void __parse_service(app_control_h service, void *user_data) ad->op_type = NSA_OP_NFC; - if (strncmp(operation, APP_CONTROL_OPERATION_SETTING_NFC, + if (operation != NULL && strncmp(operation, APP_CONTROL_OPERATION_SETTING_NFC, strlen(APP_CONTROL_OPERATION_SETTING_NFC)) == 0) { /* launched by app-control */ app_control_clone(&(ad->service), service); |