Typo, we had two sizeof() operator.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -424,7 +424,7 @@ list_data_dup (void **ptr, void *owner) | ... | @@ -424,7 +424,7 @@ list_data_dup (void **ptr, void *owner) |
424 | { | 424 | { |
425 | struct list_iterator *itr = owner; | 425 | struct list_iterator *itr = owner; |
426 | struct list_iterator *clone; | 426 | struct list_iterator *clone; |
427 | clone = malloc (sizeof (sizeof *itr)); | 427 | clone = malloc (sizeof *itr); |
428 | if (clone == NULL) | 428 | if (clone == NULL) |
429 | return ENOMEM; | 429 | return ENOMEM; |
430 | /* let the assignement operator copy the elements. */ | 430 | /* let the assignement operator copy the elements. */ | ... | ... |
-
Please register or sign in to post a comment