From e77792ceb71cd85c2615d2f5136810bbd3cb302c Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Tue, 4 Dec 2018 14:59:00 -0600 Subject: [PATCH] Fix crash if no arguments --- toast.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toast.nim b/toast.nim index 948a517..a4181d0 100644 --- a/toast.nim +++ b/toast.nim @@ -121,7 +121,8 @@ proc main( defines: defines, includeDirs: includeDirs, ) - process(source[0]) + if source.len != 0: + process(source[0]) when isMainModule: import cligen