test-inspect: handle special case iter==NULL
commit38f3ca6768df2ad5696c1e98bd87abfcfc8bc2a9
authorChristopher Li <sparse@chrisli.org>
Thu, 10 Aug 2017 20:33:34 +0000 (10 16:33 -0400)
committerChristopher Li <sparse@chrisli.org>
Fri, 11 Aug 2017 02:46:47 +0000 (10 22:46 -0400)
tree0199574fdb99c3338cfd3bdde01214b83a69c2d8
parent817082c250a112ed906871c74940a3fe3ecb7c7c
test-inspect: handle special case iter==NULL

GtkTreeView has this special case that iter==NULL means the
root node.

Reported-by: Dibyendu Majumdar <mobile@majumdar.org.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
ast-model.c