aboutsummaryrefslogtreecommitdiff
path: root/win32/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/process.c')
-rw-r--r--win32/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/process.c b/win32/process.c
index 7210934fe..46efdc160 100644
--- a/win32/process.c
+++ b/win32/process.c
@@ -66,7 +66,7 @@ parse_interpreter(const char *cmd, interp_t *interp)
66 return 1; 66 return 1;
67 } 67 }
68 68
69 if (is_suffixed_with_case(cmd, ".sh")) { 69 if (n >= 0 && is_suffixed_with_case(cmd, ".sh")) {
70 interp->path = (char *)DEFAULT_SHELL; 70 interp->path = (char *)DEFAULT_SHELL;
71 interp->name = (char *)DEFAULT_SHELL_SHORT_NAME; 71 interp->name = (char *)DEFAULT_SHELL_SHORT_NAME;
72 interp->opts = NULL; 72 interp->opts = NULL;