summaryrefslogtreecommitdiff
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 d346a925d6..316b69b873 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -715,7 +715,7 @@ rb_w32_argv_size(char *const *argv)
}
}
len += p - *t + n + 1;
- if (quote) len += 2;
+ if (p - *t == 0 || quote) len += 2;
}
return len;
}