[kaffe] CVS kaffe (robilad): Fixed crash with -jar

Kaffe CVS cvs-commits at kaffe.org
Wed Jul 6 20:13:47 PDT 2005


PatchSet 6713 
Date: 2005/07/07 03:08:31
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed crash with -jar

2005-07-07  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffe/main.c (main): Duplicate classpath string received from getenv
        in order to be able to free it later.

Members: 
	ChangeLog:1.4237->1.4238 
	kaffe/kaffe/main.c:1.86->1.87 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4237 kaffe/ChangeLog:1.4238
--- kaffe/ChangeLog:1.4237	Thu Jul  7 02:18:56 2005
+++ kaffe/ChangeLog	Thu Jul  7 03:08:31 2005
@@ -1,5 +1,10 @@
 2005-07-07  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffe/main.c (main): Duplicate classpath string received from getenv
+	in order to be able to free it later.
+
+2005-07-07  Dalibor Topic  <robilad at kaffe.org>
+
 	Resynced with GNU classpath.
 
 	2005-07-06  David Gilbert  <david.gilbert at object-refinery.com>
Index: kaffe/kaffe/kaffe/main.c
diff -u kaffe/kaffe/kaffe/main.c:1.86 kaffe/kaffe/kaffe/main.c:1.87
--- kaffe/kaffe/kaffe/main.c:1.86	Fri Jun 24 13:02:28 2005
+++ kaffe/kaffe/kaffe/main.c	Thu Jul  7 03:08:36 2005
@@ -130,7 +130,7 @@
 		}
 #endif
 	}
-	vmargs.classpath = cp;
+	vmargs.classpath = strdup(cp);
 
         cp = getenv(LIBRARYPATH1);
 	if (cp == 0) {




More information about the kaffe mailing list