From 17ef7b4a119c0d72f4aadcff6b0ce02d9fb10008 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Tue, 26 Sep 2017 19:37:44 +0900 Subject: [PATCH] declare 'value' at the beginning of the function Change-Id: I2db0e87728d171c5ef43178db8ffc634c6cf2e83 Signed-off-by: Junkyeong Kim --- src/tbm_bufmgr_exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.34.1