diff --git a/src/snc/expr.c b/src/snc/expr.c
index 170130f60fd3428f87e560f78649cd88f2d5f984..08d0416abcf8767423eed673a9ca088d54dc7a09 100644
--- a/src/snc/expr.c
+++ b/src/snc/expr.c
@@ -99,7 +99,7 @@ Expr *link_expr(
 	if (ep1 == 0)
 		return ep2;
 	if (ep2 == 0)
-		return 0;
+		return ep1;
 	ep1->last->next = ep2;
 	ep1->last = ep2->last;
 	ep2->last = 0;