From: Leon Anavi Date: Mon, 9 Nov 2015 13:27:31 +0000 (+0200) Subject: meta-tizen: privacy-manager-server: fix uninitialized variable error X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89e2c4cbdd491dcfe94b4fd26d5873e278f3edf3;p=scm%2Fbb%2Ftizen-distro.git meta-tizen: privacy-manager-server: fix uninitialized variable error Bug: BTY-115 Change-Id: Ied040c30ec6212a9b84c5fa9a80d893be11d2118 (From meta-tizen rev: cb19eb87781916603855a7222e83921bdfed1f6c) Signed-off-by: Leon Anavi --- diff --git a/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/files/fix-uninitialized-error.patch b/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/files/fix-uninitialized-error.patch new file mode 100644 index 0000000..ff18422 --- /dev/null +++ b/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/files/fix-uninitialized-error.patch @@ -0,0 +1,13 @@ +diff --git a/common/inc/SocketConnection.h b/common/inc/SocketConnection.h +index d6bd88c..9671ec7 100644 +--- a/common/inc/SocketConnection.h ++++ b/common/inc/SocketConnection.h +@@ -156,7 +156,7 @@ public: + template < typename T > + int read (std::list& list) + { +- int length; ++ int length = 0; + int res = read(length); + TryReturn(res == PRIV_MGR_ERROR_SUCCESS, res, , "read : %d", res); + diff --git a/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server-extraconf.inc b/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server-extraconf.inc index ad9200b..85f7c4a 100644 --- a/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server-extraconf.inc +++ b/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server-extraconf.inc @@ -1,5 +1,6 @@ SRC_URI += "file://fix-include-directories-in-CMakeList.txt.patch" SRC_URI += "file://fix-include-directories-in-CMakeList_2.patch" +SRC_URI += "file://fix-uninitialized-error.patch" SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"