summaryrefslogtreecommitdiff
path: root/wearable
diff options
context:
space:
mode:
Diffstat (limited to 'wearable')
-rwxr-xr-xwearable/app/src/nsa-main.c2
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);