Check for NULL before dereferencing a pointer
l is part of the exit condition of the while loop. If we exit the loop because l is NULL, we cannot dereference it.
This commit is contained in:
l is part of the exit condition of the while loop. If we exit the loop because l is NULL, we cannot dereference it.