Avoid calling `next++` when `next` is `NULL`. In practice this should be a non-functional change, but it avoids ASAN messages.
Avoid calling `next++` when `next` is `NULL`. In practice this should be a non-functional change, but it avoids ASAN messages.