[svn:parrot] r48830 - trunk/src
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Tue Sep 7 22:20:27 UTC 2010
Author: chromatic
Date: Tue Sep 7 22:20:26 2010
New Revision: 48830
URL: https://trac.parrot.org/parrot/changeset/48830
Log:
[src] Let the dl library clear dlerror() memory.
Modified:
trunk/src/dynext.c
Modified: trunk/src/dynext.c
==============================================================================
--- trunk/src/dynext.c Tue Sep 7 22:16:23 2010 (r48829)
+++ trunk/src/dynext.c Tue Sep 7 22:20:26 2010 (r48830)
@@ -282,6 +282,8 @@
Parrot_warn(interp, PARROT_WARNINGS_DYNEXT_FLAG,
"Couldn't dlopen(NULL): %s\n",
err ? err : "unknown reason");
+ /* clear the error memory */
+ (void)Parrot_dlerror();
return NULL;
}
}
@@ -307,6 +309,8 @@
Parrot_warn(interp, PARROT_WARNINGS_DYNEXT_FLAG,
"Couldn't load '%Ss': %s\n",
full_name, err ? err : "unknown reason");
+ /* clear the error memory */
+ (void)Parrot_dlerror();
return NULL;
}
}
@@ -372,6 +376,9 @@
Parrot_warn(interp, PARROT_WARNINGS_DYNEXT_FLAG,
"Couldn't load '%Ss': %s\n",
lib, err ? err : "unknown reason");
+
+ /* clear the error memory */
+ (void)Parrot_dlerror();
return NULL;
}
}
More information about the parrot-commits
mailing list