git: 9front

Download patch

ref: 079da8c8041cd05b47418fbc9121bede0e168a26
parent: 20fba2f295b47dbb38cd54570b87f3661df09e1e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 3 10:20:57 EST 2019

games/turtle: do exit instead of crash in redraw() when there where no lines drawn

--- a/sys/src/games/turtle.c
+++ b/sys/src/games/turtle.c
@@ -169,6 +169,8 @@
 		if(s == nil) break;
 		runline(s);
 	}
+	if(lines == nil)
+		exits(nil);
 
 	if(initdraw(nil, nil, nil) < 0)
 		sysfatal("initdraw: %r");
--