summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/c/pgf/printer.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/runtime/c/pgf/printer.c b/src/runtime/c/pgf/printer.c
index 1194ea85f..4b91a011c 100644
--- a/src/runtime/c/pgf/printer.c
+++ b/src/runtime/c/pgf/printer.c
@@ -176,9 +176,15 @@ pgf_print_cncfun(PgfCncFun *cncfun, PgfSequences *sequences,
}
}
- gu_puts(") [", wtr, err);
- gu_string_write(cncfun->absfun->name, wtr, err);
- gu_puts("]\n", wtr, err);
+ gu_puts(")", wtr, err);
+
+ if (cncfun->absfun != NULL) {
+ gu_puts(" [", wtr, err);
+ gu_string_write(cncfun->absfun->name, wtr, err);
+ gu_puts("]", wtr, err);
+ }
+
+ gu_puts("\n", wtr, err);
}
static void