#ifdef DEF_NETWORK_DEV
char *networkDev;
#endif
-#if defined(__osf__)
-char *ignoreLocales;
-#endif
/*
* Dtlogin will accept both Dtlogin and XDM resources. The string variable
# ifdef __apollo
# define DEF_LANG "C"
# endif
-# ifdef __osf__
-# define DEF_LANG "C"
-# endif
-# ifdef __hp_osf
-# define DEF_LANG "en_US.88591"
-# endif
# ifdef sun /* default language under Solaris */
# define DEF_LANG "C"
# endif
"networkDevice","NetworkDevice",DM_STRING, &networkDev,
DEF_NETWORK_DEV,
#endif
-#if defined(__osf__)
-"ignoreLocales", "IgnoreLocales", DM_STRING, &ignoreLocales,
- "",
-#endif
};
# define NUM_DM_RESOURCES (sizeof DmResources / sizeof DmResources[0])
char *type;
XrmValue value;
char *string, *new_string;
+ char empty[] = "";
char str_buf[50];
int len;
}
else
{
- string = default_value;
- len = (string == NULL ? 0 : strlen (string));
+ if(default_value) {
+ string = default_value;
+ len = strlen (string);
+ } else {
+ string = empty;
+ len = 0;
+ }
}
Debug ("%s/%s value %*.*s\n", name, class, len, len, string);