[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kxmlrpc
From:       Daniel Molkentin <molkentin () kde ! org>
Date:       2003-01-07 12:05:03
[Download RAW message or body]

CVS commit by danimo: 

Ok, this ultimately seems to be what we want. putenv has a lot of pitfalls
as I learned today, one of them being the some putenv implementations care
about freeing the memory and others that don't, (un)setenv is much nicer
in this respect.


  M +1 -1      kxmlrpcdaemon.cpp   1.34


--- kdenetwork/kxmlrpc/kxmlrpcdaemon.cpp  #1.33:1.34
@@ -367,5 +367,5 @@ int main(int argc, char **argv)
 
     // WABA: Make sure not to enable session management.
-    putenv(strdup("SESSION_MANAGER="));
+    unsetenv("SESSION_MANAGER=");
 
     if (KUniqueApplication::start() == false)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic