Refactor: Animation, prevent incrementing null pointer

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.
This commit is contained in:
Sybren A. Stüvel
2023-07-04 16:23:35 +02:00
parent e73273e24b
commit 899f2bbe32
+1 -1
View File
@@ -3386,7 +3386,7 @@ static void calchandlesNurb_intern(Nurb *nu, eBezTriple_Flag handle_sel_flag, bo
next = nullptr;
}
}
else {
else if (next != nullptr) {
next++;
}