shithub: fractals

Download patch

ref: 2f01a3e20e819812fc873f67940bf0011f49717d
parent: 558a014a3f0463fdc23c8b28c49503e456b5d753
author: sirjofri <[email protected]>
date: Fri Dec 15 05:19:29 EST 2023

fixes uninitialized values

--- a/fractal.c
+++ b/fractal.c
@@ -57,6 +57,10 @@
 	dparams.offsetx = 0.;
 	dparams.offsety = 0.;
 	
+	params.julia = 0;
+	params.c.r = 0.;
+	params.c.i = 0.;
+	
 	ARGBEGIN {
 	case 'j':
 		s = EARGF(usage());
--- a/mkfile
+++ b/mkfile
@@ -22,5 +22,4 @@
 
 </sys/src/cmd/mkone
 
-# for profiling. WARNING: this changes the result for some reason!
-#LDFLAGS=-p
+# LDFLAGS=-p