From: Leon Anavi Date: Mon, 9 Nov 2015 13:53:47 +0000 (+0200) Subject: capi-network-nfc: fix uninitialized variable error X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8eefa614eeadde5140459ab0c0b7603689ac246;p=scm%2Fbb%2Fmeta-tizen.git capi-network-nfc: fix uninitialized variable error Bug: BTY-116 Change-Id: Ie1a19cf2cd879c5339396e731035f472086b4a65 Signed-off-by: Leon Anavi --- diff --git a/meta-tizen-common-base/recipes-application-framework/capi-network-nfc/capi-network-nfc.inc b/meta-tizen-common-base/recipes-application-framework/capi-network-nfc/capi-network-nfc.inc index 430ed4c..8048be0 100644 --- a/meta-tizen-common-base/recipes-application-framework/capi-network-nfc/capi-network-nfc.inc +++ b/meta-tizen-common-base/recipes-application-framework/capi-network-nfc/capi-network-nfc.inc @@ -5,6 +5,7 @@ LICENSE = "Apache-2.0" PV = "0.1.5" SRC_URI = "" +SRC_URI += "file://fix-uninitialized-error-nfc.patch" S = "${WORKDIR}/git" diff --git a/meta-tizen-common-base/recipes-application-framework/capi-network-nfc/files/fix-uninitialized-error-nfc.patch b/meta-tizen-common-base/recipes-application-framework/capi-network-nfc/files/fix-uninitialized-error-nfc.patch new file mode 100644 index 0000000..b40e834 --- /dev/null +++ b/meta-tizen-common-base/recipes-application-framework/capi-network-nfc/files/fix-uninitialized-error-nfc.patch @@ -0,0 +1,13 @@ +diff --git a/src/nfc.c b/src/nfc.c +index 4d2d3e0..32e834f 100755 +--- a/src/nfc.c ++++ b/src/nfc.c +@@ -2154,7 +2154,7 @@ int nfc_manager_set_card_emulation_se_type(nfc_se_type_e type, + nfc_set_card_emulation_completed_cb callback, void *user_data) + { + int ret; +- net_nfc_se_type_e se_type; ++ net_nfc_se_type_e se_type = NET_NFC_SE_TYPE_NONE; + GVariant *parameter; + + if ((type < NFC_SE_TYPE_DISABLE) || (type > NFC_SE_TYPE_UICC))