Fix build issue on C++ compiler 63/233063/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 12 May 2020 02:01:46 +0000 (11:01 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 12 May 2020 02:06:07 +0000 (11:06 +0900)
autofill_item.c:122:31: error: 'handle' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Change-Id: I2c5446e8a90d87af2638a9f03219ebd5fc197740
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
common/autofill_item.c

index 654f904..d79ccf3 100644 (file)
@@ -78,7 +78,7 @@ EXPORT_API int autofill_item_destroy(autofill_item_h it)
 
 EXPORT_API int autofill_item_clone(autofill_item_h h, autofill_item_h *clone)
 {
-    autofill_item_h handle;
+    autofill_item_h handle = NULL;
 
     if (!h || !clone) {
         LOGW("[ERROR] Invalid parameter");