Patch: Fix PR/6652 on MinGW
Andrew Haley
aph@redhat.com
Mon Oct 20 14:07:00 GMT 2003
Mohan Embar writes:
> Index: java/io/natFileWin32.cc
> ===================================================================
> RCS file: /cvs/gcc/gcc/libjava/java/io/natFileWin32.cc,v
> retrieving revision 1.17
> diff -u -2 -r1.17 natFileWin32.cc
> --- java/io/natFileWin32.cc 29 Aug 2003 04:21:00 -0000 1.17
> +++ java/io/natFileWin32.cc 18 Oct 2003 17:28:07 -0000
> @@ -110,8 +110,11 @@
> {
> JV_TEMP_UTF_STRING (cpath, path);
> +
> + const char* thepath = *cpath.buf() ? cpath.buf() : ".";
> + // "" becomes "."
>
Eeehhh.
const char* thepath = cpath.buf ();
if (thepath[0] == 0) // Perhaps (strlen(thepath) == 0) would be less obscure.
thepath = ".";
Then you don't need the comment...
Andrew.
More information about the Java-patches
mailing list