Only do `next++` if `next` is a non-`NULL` pointer. This doesn't change the functionality of the code, but it does prevent a sanitizer warning. No functional changes.
Only do `next++` if `next` is a non-`NULL` pointer. This doesn't change the functionality of the code, but it does prevent a sanitizer warning. No functional changes.