ocaml parser segfaults on invalid files
Brought to you by:
dhiebert
I ran ctags on a directory that happened to have a .ml file that was not an ocaml file which resulted in a seg fault, an example:
# This just happens to be some simple text file with a .ml extension and
# it really isn't worth parsing, but causes a segmentation fault with ctags
Patch simply checks the value of toDoNext before it tries to dereference it.
Guard against segfault when toDoNext is NULL