From: Junkyeong Kim Date: Tue, 26 Sep 2017 10:37:44 +0000 (+0900) Subject: declare 'value' at the beginning of the function X-Git-Tag: submit/tizen/20170927.064133~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17ef7b4a119c0d72f4aadcff6b0ce02d9fb10008;p=platform%2Fadaptation%2Fsamsung_exynos%2Flibtbm-exynos.git declare 'value' at the beginning of the function Change-Id: I2db0e87728d171c5ef43178db8ffc634c6cf2e83 Signed-off-by: Junkyeong Kim --- diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index f466e88..ec94a66 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -2140,6 +2140,7 @@ init_tbm_bufmgr_priv(tbm_bufmgr bufmgr, int fd) tbm_bufmgr_backend bufmgr_backend; tbm_bufmgr_exynos bufmgr_exynos; int fp; + char *value = NULL; if (!bufmgr) return 0; @@ -2204,7 +2205,6 @@ init_tbm_bufmgr_priv(tbm_bufmgr bufmgr, int fd) * There will be the stride issue when the right alignment_plane and alignment_pitch_rgb * is not set to the backend. */ - char *value = NULL; if (system_info_get_platform_string("http://tizen.org/system/model_name", &value) != SYSTEM_INFO_ERROR_NONE) { TBM_EXYNOS_ERROR("Cannot get the \"http://tizen.org/system/model_name\" key value from system-info.\n"); TBM_EXYNOS_ERROR("May not set the right value on libtbm-exynos backend.\n");