Change-Id: I250b96406cad6c9fb2f93461ac19693a1cec2833
ucal = ucal_open(utf16_timezone, -1, uloc_getDefault(), UCAL_GREGORIAN, &status);
break;
}
-
if (U_FAILURE(status)) {
/* LCOV_EXCL_START */
- ERR("ucal_open() Fail(%s)", u_errorName(status));
+ ERR("ucal_open() Fail[%s]", u_errorName(status));
+ return NULL;
+ /* LCOV_EXCL_STOP */
+ }
+ if (NULL == ucal) {
+ /* LCOV_EXCL_START */
+ ERR("ucal_open() Fail[%s]", u_errorName(status));
return NULL;
/* LCOV_EXCL_STOP */
}
DBG("set wkst(%d)", wkst);
ucal_setAttribute(ucal, UCAL_FIRST_DAY_OF_WEEK, wkst);
}
+
return ucal;
}