char *name = atspi_accessible_get_name(obj, NULL);
char *role = atspi_accessible_get_role_name(obj, NULL);
const ObjectCache *oc = object_cache_get(obj);
- DEBUG("%d %s %s, (%d %d %d %d)", i++, name, role,
- oc->bounds->x, oc->bounds->y, oc->bounds->width, oc->bounds->height);
+
+ if (oc)
+ DEBUG("%d %s %s, (%d %d %d %d)", i++, name, role,
+ oc->bounds->x, oc->bounds->y,
+ oc->bounds->width, oc->bounds->height);
+
if (name) g_free(name);
if (role) g_free(role);
}
int i = 0;
char **cp_list = tel_get_cp_name_list();
+ if (!cp_list)
+ {
+ ERROR("cp name list is null");
+ return;
+ }
+
DEBUG("TAPI INIT");
for(i = 0; cp_list[i]; ++i)
{
time(&rawtime );
timeinfo = localtime ( &rawtime );
+ if (!timeinfo)
+ {
+ ERROR("localtime returns NULL");
+ return;
+ }
ret = vconf_get_int(VCONFKEY_REGIONFORMAT_TIME1224, &disp_12_24);
if (ret != 0)
return _("IDS_SYSTEM_NETWORK_SERVICE_UNKNOWN");
break;
}
-
- return _("IDS_SYSTEM_NETWORK_SERVICE_UNKNOWN");
}
void device_battery_get(void)
time(&rawtime );
timeinfo = localtime ( &rawtime );
+ if (!timeinfo)
+ {
+ ERROR("localtime returns NULL");
+ return;
+ }
+
strftime(buffer, DATE_TIME_BUFFER_SIZE, "%Y:%m:%d %H:%M:%S", timeinfo);
ret = vconf_get_int(VCONFKEY_SETAPPL_DATE_FORMAT_INT, &date_format);