[patch] external.c

Fred Dushin fadushin at top.cis.syr.edu
Tue Apr 22 08:50:07 PDT 1997


The following patch to external.c (kaffe/kaffevm) resolves a bogus
return value from getLibraryPath() if using static libs.  This
fixes an initialization problem with biss-awt under linux-ppc.
Still having some threading problems, though, which I'm working
on diagnosing (in biss's Toolkit run() method call to Thread.sleep(30) )

Fred Dushin
Syracuse, NY

*** external.c.old01    Fri Apr 18 10:50:09 1997
--- external.c  Tue Apr 22 11:39:51 1997
***************
*** 138,143 ****
--- 138,147 ----
  #else
        int i;

+       /* libraryPath may be returned from getLibraryPath() */
+       libraryPath  = checked_malloc( (size_t)1 );
+       *libraryPath = '\0';
+
        /* Initialise the native function table */
        for (i = 0; default_natives[i].name != 0; i++) {
                addNativeMethod(default_natives[i].name, default_natives[i].func);




More information about the kaffe mailing list