[patch] remove crashes in putenv(): use "" instead of NULL value

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu May 15 14:29:50 CEST 2008


> Von: "Jarosław Staniek"
> For review; remove crashes in putenv(): use "" instead of NULL value
> (needed 
> e.g. for unsetenv()).
> 
> NULL values caused a crash in strlen() and _putenv_s(), at least on Vista.
> 
> Noticed that in the code of knotify4:
> 
>    unsetenv( "SESSION_MANAGER" );
Strange but fine with me :)

putenv_s really seems to be to 'more secure' function - it's more secure that it's crashing when using invalid values :D



Christian
-- 
249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de


More information about the Kde-windows mailing list