if (tmp->str) free(tmp->str);
free(tmp);
}
+ if (!sym) break;
if ((begin - 1) > body)
{
sym->body = mem_alloc(sizeof(char) * (begin - body - 1));
g_data->gl = gl;
g_data->itc1 = api->itc1;
- if (g_data)
- max = g_data->max_items;
- else max = 20000;
+ max = g_data->max_items;
for (i = 0; i <= max; i++)
elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
globalGraphical.model_path = strdup(value);/*Don't forget update UI*/
tmp = strdup(globalGraphical.model_path);
a = strrchr(tmp,'.');
+ if (!a)
+ {
+ free(tmp);
+ return EINA_FALSE;
+ }
format = malloc(sizeof (char) * (strlen(a) - 1));
for (i = 0; i <= (int)strlen(a) - 1; i++)
format[i] = a[i + 1];
/*Get extension of file*/
tmp = strdup(event_info);
a = strrchr(tmp,'.');
+ if (!a)
+ {
+ free(tmp);
+ return;
+ }
format = malloc(sizeof (char) * (strlen(a) - 1));
for (i = 0; i <= (int)strlen(a) - 1; i++)
format[i] = a[i + 1];
if (pd->handler_fd)
_handler_active_update(obj, pd);
- else
+ else if (pd->loop_data)
{
pd->handler_fd = _ecore_main_fd_handler_add
(pd->loop, pd->loop_data, obj, pd->fd, _handler_flags_get(pd),
if (pd->handler_fd) _handler_active_update(obj, pd);
}
}
- else if (pd->win32)
+ else if (pd->win32 && pd->loop_data)
{
pd->handler_win32 = _ecore_main_win32_handler_add
(pd->loop, pd->loop_data, obj, pd->win32, _cb_handler_win32, obj);
faces = body->soft_body->m_faces;
slice->index = index;
+ if (!faces.size()) return slice;
slice->p[0].x = _ephysics_body_soft_body_slice_calc(
faces[slice->index].m_n[0]->m_x.x(), delta, max);
slice->p[0].y = 1 - _ephysics_body_soft_body_slice_calc(
val = data;
if (!val)
*res = 1;
-
- if (*val != 7)
+ else if (*val != 7)
*res = 1;
return EINA_TRUE;
fail_if(test1 != NULL);
test1 = eina_matrixsparse_data_idx_get(matrix, 5, 3);
+ fail_if(!test1);
fail_if(*test1 != data[5][3]);
r = eina_matrixsparse_column_idx_clear(matrix, 3);
Eina_List *l;
Evas_Canvas3D_Mesh_Frame *f;
+ if (!pd) return NULL;
EINA_LIST_FOREACH(pd->frames, l, f)
{
if (f->frame == 0)