dfs.c: fix null pointer bug.
Merge pull request #69 from geniusgogo/dfs-fixbug

dfs.c: fix null pointer bug.