[kaffe] CVS kaffe (robilad): Fixed small compiler warning

Kaffe CVS cvs-commits at kaffe.org
Tue Oct 12 03:14:53 PDT 2004


PatchSet 5279 
Date: 2004/10/12 10:10:28
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed small compiler warning

2004-10-12  Dalibor Topic <robilad at kaffe.org>

        * libraries/clib/native/ZipFile.c
        (java_util_zip_ZipFile_getZipData0):
        Use '\0' for an empty string to fix compiler warning.

Members: 
	ChangeLog:1.2831->1.2832 
	libraries/clib/native/ZipFile.c:1.19->1.20 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2831 kaffe/ChangeLog:1.2832
--- kaffe/ChangeLog:1.2831	Tue Oct 12 08:45:00 2004
+++ kaffe/ChangeLog	Tue Oct 12 10:10:28 2004
@@ -1,5 +1,11 @@
 2004-10-12  Dalibor Topic <robilad at kaffe.org>
 
+	* libraries/clib/native/ZipFile.c
+	(java_util_zip_ZipFile_getZipData0):
+	Use '\0' for an empty string to fix compiler warning.
+
+2004-10-12  Dalibor Topic <robilad at kaffe.org>
+
 	* kaffe/kaffevm/systems/unix-pthreads/thread-internal.h
 	(jthread_on_current_stack): De-inlined to fix compiler
 	warnings.
Index: kaffe/libraries/clib/native/ZipFile.c
diff -u kaffe/libraries/clib/native/ZipFile.c:1.19 kaffe/libraries/clib/native/ZipFile.c:1.20
--- kaffe/libraries/clib/native/ZipFile.c:1.19	Tue Oct 12 02:00:24 2004
+++ kaffe/libraries/clib/native/ZipFile.c	Tue Oct 12 10:10:32 2004
@@ -73,7 +73,7 @@
 
 	if( unhand(zentry)->size > 0 )
 	{
-		entry.fileName = "";
+		entry.fileName = '\0';
 		entry.uncompressedSize = unhand(zentry)->size;
 		entry.compressionMethod = unhand(zentry)->method;
 		entry.compressedSize = unhand(zentry)->csize;




More information about the kaffe mailing list