summaryrefslogtreecommitdiff
path: root/lisp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lisp.c')
-rw-r--r--lisp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp.c b/lisp.c
index 6b34bab..a797e8e 100644
--- a/lisp.c
+++ b/lisp.c
@@ -99,6 +99,7 @@ void println_value(value *val){
printf("\n");
}
void print_value(value *val){
+ if(!val) { return; }
switch (val->type) {
case VT_INT:
printf("%d", val->as.i);