summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-04-30 19:15:14 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-04-30 19:15:14 +0100
commit556918e21fbb67131d979b04f29a0b59fcd87575 (patch)
tree3449820cf3955315e991a695a7a8c74623a7945f /src
parent56444103a3b2159d334aa87d782fbca987118bbc (diff)
Set a blank default search path for WIN32
Diffstat (limited to 'src')
-rw-r--r--src/Intrinsic.c11
1 files 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);
}