[ITC][base-utils[Non-ACR][TFDF-2826 Assan issue in base-utils resolved] 97/210697/2
authormanoj <manoj.g2@samsung.com>
Wed, 24 Jul 2019 04:21:34 +0000 (09:51 +0530)
committershobhit verma <shobhit.v@samsung.com>
Wed, 24 Jul 2019 05:28:45 +0000 (05:28 +0000)
Change-Id: Ibf478b5f1b03d00b174789f211075d0e6afb6987
Signed-off-by: manoj <manoj.g2@samsung.com>
src/itc/base-utils/ITs-base-utils-ucalendar.c

index d56d32f167099c17785bf560d37d3e763d33efb8..8828e7001b0fe3bb6ead709f4c0c653ba9cc8b46 100755 (executable)
@@ -784,8 +784,8 @@ int ITc_i18n_ucalendar_set_timezone_p(void)
        int nCapacity = -1;
        char *pszCountryCode = "US";
        i18n_uchar *pszUcharCountryCode = (i18n_uchar*)calloc(strlen(pszCountryCode) + 1, sizeof(i18n_uchar));
-       nCapacity = i18n_ustring_get_length(pszUcharCountryCode);
        i18n_uchar *pRet = i18n_ustring_copy_ua(pszUcharCountryCode, pszCountryCode);
+       nCapacity = i18n_ustring_get_length(pszUcharCountryCode);
        if ( pRet == NULL || i18n_ustring_get_length(pszUcharCountryCode) <= 0 )
        {
                FPRINTF("\\n[Line : %d][%s] i18n_ustring_copy_ua failed\\n", __LINE__, API_NAMESPACE);