* dcrt0.cc (build_argv): Guard against NULL pointer dereference found by Clang.
This commit is contained in:
parent
85b2b14e7a
commit
ea51d3d425
|
@ -1,3 +1,8 @@
|
|||
2012-07-04 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||
|
||||
* dcrt0.cc (build_argv): Guard against NULL pointer dereference found
|
||||
by Clang.
|
||||
|
||||
2012-07-04 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||
|
||||
* exceptions.cc (setup_handler): Remove unneeded assignment found by
|
||||
|
|
|
@ -353,6 +353,7 @@ build_argv (char *cmd, char **&argv, int &argc, int winshell)
|
|||
}
|
||||
}
|
||||
|
||||
if (argv)
|
||||
argv[argc] = NULL;
|
||||
|
||||
debug_printf ("argc %d", argc);
|
||||
|
|
Loading…
Reference in New Issue