From 556918e21fbb67131d979b04f29a0b59fcd87575 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Wed, 30 Apr 2008 19:15:14 +0100 Subject: Set a blank default search path for WIN32 --- src/Intrinsic.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Intrinsic.c b/src/Intrinsic.c index 3a80cb3..a86884e 100644 --- a/src/Intrinsic.c +++ b/src/Intrinsic.c @@ -1315,7 +1315,11 @@ static void FillInLangSubs( */ static char *implementation_default_path(void) { -#if defined(__UNIXOS2__) +#if defined(WIN32) + static char xfilesearchpath[] = ""; + + return xfilesearchpath; +#elif defined(__UNIXOS2__) /* if you know how to pass % thru the compiler let me know */ static char xfilesearchpath[] = XFILESEARCHPATHDEFAULT; static Bool fixed; @@ -1379,11 +1383,12 @@ String XtResolvePathname( defaultPath = impl_default; } path = defaultPath; -#else - path = ""; /* NULL would kill us later */ #endif /* VMS */ } + if (path == NULL) + path = ""; /* NULL would kill us later */ + if (filename == NULL) { filename = XrmClassToString(pd->class); } -- cgit v1.2.3