Skip to content
Snippets Groups Projects
Commit 8abdeb0c authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Fix clang reported error

d31965f3 triggered it
parent d31965f3
No related branches found
No related tags found
No related merge requests found
......@@ -627,7 +627,8 @@ void list_iterator_copy(ListIterator *dst, ListIterator src)
if (!*dst)
*dst = list_iterator_alloc();
memcpy(*dst, src, sizeof(struct listIterator));
if (*dst)
memcpy(*dst, src, sizeof(struct listIterator));
}
/* list_iterator_reset()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment