summaryrefslogtreecommitdiff
path: root/exec/hashexec.c
diff options
context:
space:
mode:
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;