From e6ce0cc145d5dd3c9d60c8ad082e96f366ba9842 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 26 Oct 2019 08:54:18 +0200 Subject: [PATCH] mes: = 0 --- src/mes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mes.c b/src/mes.c index bea13b90..afc94b29 100644 --- a/src/mes.c +++ b/src/mes.c @@ -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);