{
/* Check network */
int network_status = 0;
- vconf_get_int(VCONFKEY_NETWORK_STATUS, &network_status);
+ int ret = vconf_get_int(VCONFKEY_NETWORK_STATUS, &network_status);
+ if (0 != ret) {
+ SLOG(LOG_WARN, tts_tag(), "[Network] Fail to get network status, ret(%d)", ret);
+ return false;
+ }
if (network_status == VCONFKEY_NETWORK_OFF) {
SLOG(LOG_WARN, tts_tag(), "[Network] Current network connection is OFF.");
SLOG(LOG_DEBUG, tts_tag(), "[Network] Network status is %d", network_status);
return true;
-}
\ No newline at end of file
+}