Merge pull request #24 from mikebolt/master

Return from mpc_ast_print_depth if NULL
This commit is contained in:
Daniel Holden
2015-03-03 23:46:45 +00:00

1
mpc.c
View File

@@ -2603,6 +2603,7 @@ static void mpc_ast_print_depth(mpc_ast_t *a, int d, FILE *fp) {
if (a == NULL) {
fprintf(fp, "NULL\n");
return;
}
for (i = 0; i < d; i++) { fprintf(fp, " "); }