< prev index next >
src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c
Print this page
*** 119,129 ****
jvm = vm;
/* Get address of this library and the directory containing it. */
dladdr((void *)AWT_OnLoad, &dlinfo);
! realpath((char *)dlinfo.dli_fname, buf);
len = strlen(buf);
p = strrchr(buf, '/');
/*
* The code below is responsible for:
--- 119,130 ----
jvm = vm;
/* Get address of this library and the directory containing it. */
dladdr((void *)AWT_OnLoad, &dlinfo);
! char* res = realpath((char *)dlinfo.dli_fname, buf);
! (void)res;
len = strlen(buf);
p = strrchr(buf, '/');
/*
* The code below is responsible for:
< prev index next >