Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid crashing creating a process when workdir is null.

  • Loading branch information...
commit 8b1ef4524307ef9f9e2cff3118e51f1b6ac88f41 1 parent dfc2349
@kumpera kumpera authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mono/metadata/process.c
View
2  mono/metadata/process.c
@@ -747,7 +747,7 @@ MonoBoolean ves_icall_System_Diagnostics_Process_CreateProcess_internal (MonoPro
/* The default dir name is "". Turn that into NULL to mean
* "current directory"
*/
- if(mono_string_length (proc_start_info->working_directory)==0) {
+ if(proc_start_info->working_directory == NULL || mono_string_length (proc_start_info->working_directory)==0) {
dir=NULL;
} else {
dir=mono_string_chars (proc_start_info->working_directory);
Please sign in to comment.
Something went wrong with that request. Please try again.