From a125d6d97318b85cb5aeb395268bd8c2c60ef576 Mon Sep 17 00:00:00 2001 From: Dahyeong Kim Date: Thu, 18 Apr 2013 19:45:28 +0900 Subject: [PATCH] Revert "Delete checking if strlen() is 0 in ConvertWcsToMbsN()" This reverts commit e5e892720fb5d6518bcdbb674113b32f55d2720b --- src/base/utility/FBaseUtil_IcuConverter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/base/utility/FBaseUtil_IcuConverter.cpp b/src/base/utility/FBaseUtil_IcuConverter.cpp index ae410f8..38c4aa7 100644 --- a/src/base/utility/FBaseUtil_IcuConverter.cpp +++ b/src/base/utility/FBaseUtil_IcuConverter.cpp @@ -208,6 +208,7 @@ ConvertWcsToMbsN(const wchar_t* pValue) SysTryReturn(NID_BASE_UTIL, pValue != null, null, E_INVALID_ARG, "[%s] Invalid argument is used. The pValue is null.", GetErrorMessage(E_INVALID_ARG)); int len = wcslen(pValue); + SysTryReturn(NID_BASE_UTIL, len != 0, null, E_INVALID_ARG, "[%s] Invalid argument is used. The pValue is an empty string.", GetErrorMessage(E_INVALID_ARG)); UErrorCode err = U_ZERO_ERROR; UConverter* pConverter = ucnv_open("UTF-8", &err); -- 2.7.4