dtimsstart: Resolve all compiler warnings

This commit is contained in:
Peter Howkins
2018-04-28 21:17:28 +01:00
parent e524a14c9c
commit 55c120b287
4 changed files with 23 additions and 16 deletions

View File

@@ -699,7 +699,9 @@ static int set_locale_env(locale)
bp = strcpyx(bp, ":");
}
bp = strcpyx(bp, ENV_XFILESEARCHPATH_STRING);
putenv(NEWSTR(buf));
if(*buf) {
putenv(XtNewString(buf));
}
/* set NLSPATH */
vp = getenv(ENV_NLSPATH);
@@ -710,7 +712,10 @@ static int set_locale_env(locale)
bp = strcpyx(bp, ":");
}
bp = strcpyx(bp, ENV_NLSPATH_STRING);
putenv(NEWSTR(buf));
/* BUG should this be putenv(bp) ? */
if(*buf) {
putenv(XtNewString(buf));
}
#ifdef NLS
if (catd != (nl_catd) -1) (void) catclose(catd);