Commit 99c67eef authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Null parameters need to be quoted on the commandline.

parent fc86392a
...@@ -538,6 +538,7 @@ BOOL build_command_line( char **argv ) ...@@ -538,6 +538,7 @@ BOOL build_command_line( char **argv )
has_space=0; has_space=0;
bcount=0; bcount=0;
a=*arg; a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') { while (*a!='\0') {
if (*a=='\\') { if (*a=='\\') {
bcount++; bcount++;
...@@ -573,6 +574,7 @@ BOOL build_command_line( char **argv ) ...@@ -573,6 +574,7 @@ BOOL build_command_line( char **argv )
/* Check for quotes and spaces in this argument */ /* Check for quotes and spaces in this argument */
has_space=has_quote=0; has_space=has_quote=0;
a=*arg; a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') { while (*a!='\0') {
if (*a==' ' || *a=='\t') { if (*a==' ' || *a=='\t') {
has_space=1; has_space=1;
......
...@@ -97,6 +97,7 @@ int main (int argc, char *argv[]) ...@@ -97,6 +97,7 @@ int main (int argc, char *argv[])
has_space=0; has_space=0;
bcount=0; bcount=0;
a=*arg; a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') { while (*a!='\0') {
if (*a=='\\') { if (*a=='\\') {
bcount++; bcount++;
...@@ -131,6 +132,7 @@ int main (int argc, char *argv[]) ...@@ -131,6 +132,7 @@ int main (int argc, char *argv[])
/* Check for quotes and spaces in this argument */ /* Check for quotes and spaces in this argument */
has_space=has_quote=0; has_space=has_quote=0;
a=*arg; a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') { while (*a!='\0') {
if (*a==' ' || *a=='\t') { if (*a==' ' || *a=='\t') {
has_space=1; has_space=1;
......
...@@ -48,6 +48,7 @@ static char *build_command_line( char **argv ) ...@@ -48,6 +48,7 @@ static char *build_command_line( char **argv )
has_space=0; has_space=0;
bcount=0; bcount=0;
a=*arg; a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') { while (*a!='\0') {
if (*a=='\\') { if (*a=='\\') {
bcount++; bcount++;
...@@ -82,6 +83,7 @@ static char *build_command_line( char **argv ) ...@@ -82,6 +83,7 @@ static char *build_command_line( char **argv )
/* Check for quotes and spaces in this argument */ /* Check for quotes and spaces in this argument */
has_space=has_quote=0; has_space=has_quote=0;
a=*arg; a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') { while (*a!='\0') {
if (*a==' ' || *a=='\t') { if (*a==' ' || *a=='\t') {
has_space=1; has_space=1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment