From: Jihoon Kim Date: Thu, 13 Dec 2018 00:41:26 +0000 (+0900) Subject: Initialize variables for fixing crash X-Git-Tag: accepted/tizen/unified/20181213.065315~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c883dadb71a199d2a062c953dcd7dba0ef87000;p=platform%2Fcore%2Fuifw%2Fautofill.git Initialize variables for fixing crash Change-Id: I8119c8a25314c7097d0bb43bfc7e1c46ca757974 Signed-off-by: Jihoon Kim --- 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;