diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/process.c b/win32/process.c index 99db6f79f..8546c6e2f 100644 --- a/win32/process.c +++ b/win32/process.c | |||
@@ -64,6 +64,10 @@ parse_interpreter(const char *cmd, interp_t *interp) | |||
64 | interp->path = path; | 64 | interp->path = path; |
65 | interp->name = t; | 65 | interp->name = t; |
66 | interp->opts = strtok(NULL, "\r\n"); | 66 | interp->opts = strtok(NULL, "\r\n"); |
67 | /* Trim leading and trailing whitespace from the options. | ||
68 | * If the resulting string is empty return a NULL pointer. */ | ||
69 | if (interp->opts && trim(interp->opts) == interp->opts) | ||
70 | interp->opts = NULL; | ||
67 | return 1; | 71 | return 1; |
68 | } | 72 | } |
69 | 73 | ||