[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] XaAES crash in launch()



Hello.

I struggled against this bug during one month. XaAES was crashing randomly on the FireBee/FireTOS when starting the desktop or other programs. The cause was an uninitialized variable. Now it works perfectly!

See the attached patch.
Alan, please commit!

Fixed random crash when starting applications. Contributed by Vincent Riviere.

--
Vincent Rivière
--- freemint.orig/xaaes/src.km/xa_shel.c	2011-05-10 19:49:35.812500000 +0200
+++ freemint/xaaes/src.km/xa_shel.c	2011-05-11 20:52:27.171875000 +0200
@@ -251,9 +251,9 @@
 	{
 		c = *p;
 		*p = 0;
-		if( ps )
-			*ps = p;
 	}
+	if( ps )
+		*ps = p;
 	return c;
 }