From 5c883dadb71a199d2a062c953dcd7dba0ef87000 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 13 Dec 2018 09:41:26 +0900 Subject: [PATCH] Initialize variables for fixing crash Change-Id: I8119c8a25314c7097d0bb43bfc7e1c46ca757974 Signed-off-by: Jihoon Kim --- client/autofill.c | 6 +++--- client/autofill_auth.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/autofill.c b/client/autofill.c index 2d68c31..9469a51 100644 --- a/client/autofill.c +++ b/client/autofill.c @@ -294,9 +294,9 @@ EXPORT_API int autofill_connect(autofill_h ah, autofill_connection_status_change EXPORT_API int autofill_commit(autofill_h ah, autofill_save_view_info_h vi) { rpc_port_autofill_save_view_info_h vih; - char *id; - char *label; - char *value; + char *id = NULL; + char *label = NULL; + char *value = NULL; autofill_hint_e autofill_hint; bool sensitive_data; diff --git a/client/autofill_auth.c b/client/autofill_auth.c index 2585e64..815b358 100644 --- a/client/autofill_auth.c +++ b/client/autofill_auth.c @@ -35,8 +35,8 @@ EXPORT_API int autofill_auth_info_request(autofill_h ah, autofill_view_info_h vi { int ret = AUTOFILL_ERROR_NONE; rpc_port_autofill_view_info_h vih; - char *id; - char *label; + char *id = NULL; + char *label = NULL; autofill_hint_e autofill_hint; bool sensitive_data; -- 2.7.4