summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 13:59:16 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 21:11:32 +0100
commit08978ddb560ad10e4427fc7b4aaa18cf6912ba0c (patch)
tree962d302e5a97309918707f911935533040abea3c /src/lib/eina
parent3c58b3ebeb896281a24ba9143fc64df03510631c (diff)
eina: Set it to NULL before next iteration
it might have been free'd by the user, so set it to NULL before next iteration. This is an attempt to fix CID 1039913 and 1039914. We don't use the pointer value, only the pointer, so the error is wrong. Could flag the error in coverity, but if this fixes it, we wont see the error in other situations.
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_inlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_inlist.h b/src/lib/eina/eina_inlist.h
index ccca63e4f9..dd2fd733c6 100644
--- a/src/lib/eina/eina_inlist.h
+++ b/src/lib/eina/eina_inlist.h
@@ -844,7 +844,7 @@ EAPI Eina_Inlist *eina_inlist_sort(Eina_Inlist *head, Eina_Compare_Cb func);
844#define EINA_INLIST_FOREACH_SAFE(list, list2, it) \ 844#define EINA_INLIST_FOREACH_SAFE(list, list2, it) \
845 for (it = NULL, it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), list2 = it ? EINA_INLIST_GET(it)->next : NULL; \ 845 for (it = NULL, it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), list2 = it ? EINA_INLIST_GET(it)->next : NULL; \
846 it; \ 846 it; \
847 it = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? list2->next : NULL) 847 it = NULL, it = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? list2->next : NULL)
848 848
849/** 849/**
850 * @def EINA_INLIST_REVERSE_FOREACH 850 * @def EINA_INLIST_REVERSE_FOREACH