summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index f24a6ab2d..35b52df1d 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1054,7 +1054,7 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
cmd = tmp;
}
else {
- int len = 0, quote = (*cmd == '"') ? '"' : 0;
+ int len = 0, quote = (*cmd == '"') ? '"' : (*cmd == '\'') ? '\'' : 0;
for (prog = cmd + !!quote;; prog = CharNext(prog)) {
if (!*prog) {
len = prog - cmd;