Skip to content
Snippets Groups Projects
Commit 2707349d authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

no need to check for NULL with the new h_pprint

parent 31cc6885
No related branches found
No related tags found
No related merge requests found
......@@ -466,10 +466,7 @@ int main(int argc, char *argv[])
}
/* print result */
if (!res->ast)
printf("null\n");
else
h_pprint(stdout, res->ast, 0, 2);
h_pprint(stdout, res->ast, 0, 2);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment