Move static variable into function 81/227281/2 accepted/tizen/unified/20200312.234345 submit/tizen/20200311.070630
authorhj kim <backto.kim@samsung.com>
Wed, 11 Mar 2020 05:25:57 +0000 (14:25 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 11 Mar 2020 07:02:17 +0000 (07:02 +0000)
Change-Id: I48ab0ca93bef283470bd4e1007e71086fbafbe31

src/common/media-svc-util.c

index 67c204a..2d8719d 100644 (file)
@@ -77,8 +77,6 @@
 
 #define MEDIA_SVC_DEFAULT_GPS_VALUE                    -200                    /**< Default GPS Value*/
 
-static int media_svc_pinyin_support = -1;
-
 typedef struct {
        char content_type[15];
        int category_by_mime;
@@ -1705,6 +1703,7 @@ bool _media_svc_check_pinyin_support(void)
 {
        int ret = SYSTEM_INFO_ERROR_NONE;
        bool is_supported = false;
+       static int media_svc_pinyin_support = -1;
 
        if (media_svc_pinyin_support == -1) {
                ret = system_info_get_platform_bool("http://tizen.org/feature/content.filter.pinyin", &is_supported);