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

Jarosław Staniek js at iidea.pl
Thu May 15 14:21:06 CEST 2008


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" );
-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stdlib.patch
Url: http://mail.kde.org/pipermail/kde-windows/attachments/20080515/eabfdc27/attachment.ksh 


More information about the Kde-windows mailing list