changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: games/turtle: do exit instead of crash in redraw() when there where no lines drawn

changeset 7428: fe7fc19b1e64
parent 7427: 1e3449536794
child 7429: 1dd6759b578b
author: cinap_lenrek@felloff.net
date: Sun, 03 Nov 2019 15:20:57 +0100
files: sys/src/games/turtle.c
description: games/turtle: do exit instead of crash in redraw() when there where no lines drawn
     1.1--- a/sys/src/games/turtle.c
     1.2+++ b/sys/src/games/turtle.c
     1.3@@ -169,6 +169,8 @@ main()
     1.4 		if(s == nil) break;
     1.5 		runline(s);
     1.6 	}
     1.7+	if(lines == nil)
     1.8+		exits(nil);
     1.9 
    1.10 	if(initdraw(nil, nil, nil) < 0)
    1.11 		sysfatal("initdraw: %r");