summaryrefslogtreecommitdiff
path: root/exec/hashexec.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-21 19:13:03 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-21 19:13:03 +0000
commit7bdbf1bd9a6f983a3b7431c0e84b79d6120a24f9 (patch)
treeb050108761db7fe1fbed463bf1af941987cf55aa /exec/hashexec.c
parent233549d4e3556fb611c06ff0019190dc340a785d (diff)
(check_hashbang) [prepare_args]: Declare FILE_NAME, ERROR, and NAME
volatile.
Diffstat (limited to 'exec/hashexec.c')
-rw-r--r--exec/hashexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exec/hashexec.c b/exec/hashexec.c
index 979bb67b..1a735e37 100644
--- a/exec/hashexec.c
+++ b/exec/hashexec.c
@@ -175,7 +175,7 @@ check_hashbang (struct execdata *e,
inline void prepare_args (void)
{
- char *file_name = NULL;
+ volatile char *file_name = NULL;
size_t namelen;
if (! (flags & EXEC_SECURE))
@@ -185,8 +185,8 @@ check_hashbang (struct execdata *e,
if it contains no slash, looking for files named by ARGV[0] in
the `PATH' environment variable might find it. */
- error_t error;
- char *name;
+ volatile error_t error;
+ volatile char *name;
file_t name_file;
struct stat st;
int file_fstype;