On Friday 14 September 2007 13:36:25 [EMAIL PROTECTED] wrote:
> Modified:
> trunk/src/dynext.c
> Modified: trunk/src/dynext.c
> ===========================================================================
>=== --- trunk/src/dynext.c (original)
> +++ trunk/src/dynext.c Fri Sep 14 13:36:25 2007
> @@ -235,7 +235,7 @@
> * [shouldn't this happen in Parrot_locate_runtime_file instead?]
> */
> #ifdef WIN32
> - if (memcmp(lib->strstart, "lib", 3) == 0) {
> + if (!STRING_IS_EMPTY(lib) && memcmp(lib->strstart, "lib", 3) == 0) {
> *handle = Parrot_dlopen((char*)lib->strstart + 3);
> if (*handle) {
> path = string_substr(interp, lib, 3, lib->strlen - 3, NULL,
> 0);
I poked at this code last night for another reason, and disliked the lack of
encapsulation of string internals there.
-- c