summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/callproc.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 292e9af3957..201c5871537 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1253,10 +1253,15 @@ init_callproc ()
}
}
- tempdir = Fdirectory_file_name (Vexec_directory);
- if (access (XSTRING (tempdir)->data, 0) < 0)
- dir_warning ("Warning: arch-dependent data dir (%s) does not exist.\n",
- Vexec_directory);
+#ifndef CANNOT_DUMP
+ if (initialized)
+#endif
+ {
+ tempdir = Fdirectory_file_name (Vexec_directory);
+ if (access (XSTRING (tempdir)->data, 0) < 0)
+ dir_warning ("Warning: arch-dependent data dir (%s) does not exist.\n",
+ Vexec_directory);
+ }
tempdir = Fdirectory_file_name (Vdata_directory);
if (access (XSTRING (tempdir)->data, 0) < 0)