Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[TT#2107] Fix dynloading of libraries from exact file name.

  • Loading branch information...
commit ff9ad45981dc9d401d8e4590e550760255cb2205 1 parent 7db4473
Martin von Gagern authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/dynext.c
4 src/dynext.c
View
@@ -346,7 +346,7 @@ get_path(PARROT_INTERP, ARGIN_NULLOK(STRING *lib), Parrot_dlopen_flags flags,
/* And on cygwin replace a leading "lib" by "cyg". */
#ifdef __CYGWIN__
- if (!STRING_length(lib) >= 3 && memcmp(lib->strstart, "lib", 3) == 0) {
+ if (STRING_length(lib) >= 3 && memcmp(lib->strstart, "lib", 3) == 0) {
path = Parrot_str_concat(interp, CONST_STRING(interp, "cyg"),
STRING_substr(interp, lib, 3, lib->strlen - 3));
@@ -357,7 +357,7 @@ get_path(PARROT_INTERP, ARGIN_NULLOK(STRING *lib), Parrot_dlopen_flags flags,
}
#endif
- if (!STRING_length(lib)) {
+ if (STRING_length(lib)) {
*handle = dlopen_string(interp, flags, lib);
if (*handle)
return lib;
Please sign in to comment.
Something went wrong with that request. Please try again.