declare 'value' at the beginning of the function 77/152577/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 26 Sep 2017 10:37:44 +0000 (19:37 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 26 Sep 2017 10:37:47 +0000 (19:37 +0900)
Change-Id: I2db0e87728d171c5ef43178db8ffc634c6cf2e83
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/tbm_bufmgr_exynos.c

index f466e88..ec94a66 100644 (file)
@@ -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");