This commit is contained in:
Jan Nieuwenhuizen 2019-10-26 08:54:18 +02:00
parent 3d7386dbdc
commit e6ce0cc145
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 3 additions and 3 deletions

View File

@ -383,11 +383,11 @@ open_boot ()
eputs (MES_PKGDATADIR);
eputs ("\n");
}
if (getenv ("MES_BOOT"))
if (getenv ("MES_BOOT") != 0)
strcpy (boot, getenv ("MES_BOOT"));
else
strcpy (boot, "boot-0.scm");
if (getenv ("MES_PREFIX"))
if (getenv ("MES_PREFIX") != 0)
{
strcpy (g_datadir, getenv ("MES_PREFIX"));
strcpy (g_datadir + strlen (g_datadir), "/mes");
@ -413,7 +413,7 @@ open_boot ()
if (__stdin < 0)
{
g_datadir[0] = 0;
if (getenv ("srcdest"))
if (getenv ("srcdest") != 0)
strcpy (g_datadir, getenv ("srcdest"));
strcpy (g_datadir + strlen (g_datadir), "mes");
strcpy (file_name, g_datadir);