From 7bdbf1bd9a6f983a3b7431c0e84b79d6120a24f9 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 21 Nov 1995 19:13:03 +0000 Subject: (check_hashbang) [prepare_args]: Declare FILE_NAME, ERROR, and NAME volatile. --- exec/hashexec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exec/hashexec.c') 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; -- cgit v1.2.3