Initialize variables for fixing crash 55/195355/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 13 Dec 2018 00:41:26 +0000 (09:41 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 13 Dec 2018 00:41:31 +0000 (09:41 +0900)
Change-Id: I8119c8a25314c7097d0bb43bfc7e1c46ca757974
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
client/autofill.c
client/autofill_auth.c

index 2d68c31..9469a51 100644 (file)
@@ -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;
 
index 2585e64..815b358 100644 (file)
@@ -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;