mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:32:43 +00:00 
			
		
		
		
	Ladybird: Don't overwrite argv[0] in spawn_helper_process()
This is already set correctly at the caller.
This commit is contained in:
		
							parent
							
								
									8483efb399
								
							
						
					
					
						commit
						1c92e6ee9d
					
				
					 2 changed files with 1 additions and 2 deletions
				
			
		|  | @ -15,7 +15,6 @@ ErrorOr<void> spawn_helper_process(StringView process_name, Span<StringView> arg | |||
|     VERIFY(!paths.is_empty()); | ||||
|     ErrorOr<void> result; | ||||
|     for (auto const& path : paths) { | ||||
|         arguments[0] = path.bytes_as_string_view(); | ||||
|         result = Core::System::exec(path, arguments, search_in_path, environment); | ||||
|         if (!result.is_error()) | ||||
|             break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 MacDue
						MacDue