Skip to content

Commit 73cfbb2

Browse files
committed
sexpr: properly check for () when dumping
Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
1 parent 4c96a8e commit 73cfbb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sexpr_dump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ struct str *sexpr_dump(struct val *lv, bool raw)
175175
static struct str empty = STR_STATIC_INITIALIZER("()");
176176
struct str *tmp;
177177

178-
if (!lv)
178+
if (sexpr_is_null(lv))
179179
return &empty;
180180

181181
switch (lv->type) {

0 commit comments

Comments
 (0)