util: Fix definition of LIST_FOR_EACH_CONTINUE macro.
authorMauricio Vásquez <mauricio.vasquezbernal@studenti.polito.it>
Fri, 2 Oct 2015 11:23:31 +0000 (13:23 +0200)
committerBen Pfaff <blp@nicira.com>
Fri, 2 Oct 2015 13:24:38 +0000 (06:24 -0700)
commit0cf89e44ef657b662ee3e086cd5aebe3324ea524
treefc72b769f4f5010f4ddb1e71a7ecd303b5eb6eb9
parentc0c1dccb35e4cd26905e52bb0f08290a09e0e148
util: Fix definition of LIST_FOR_EACH_CONTINUE macro.

The definition of the INIT_CONTAINER macro initializes ITER to NULL,
it will cause a segmentation fault when it is deferenced on
(ITER)->MEMBER.next, then, I changed it to the ASSIGN_CONTAINER macro that
does not initialize ITER.

This does not fix any observable bug because LIST_FOR_EACH_CONTINUE is not
used anywhere.

Signed-off-by: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/list.h