mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* string.c (str_gsub): use STR_NOCAPA.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									b98389e436
								
							
						
					
					
						commit
						0879310091
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								string.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								string.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2105,7 +2105,7 @@ str_gsub(argc, argv, str, bang)
 | 
			
		|||
	if (str_independent(str)) {
 | 
			
		||||
	    free(RSTRING(str)->ptr);
 | 
			
		||||
	}
 | 
			
		||||
	FL_UNSET(str, ELTS_SHARED|STR_ASSOC);
 | 
			
		||||
	FL_UNSET(str, STR_NOCAPA);
 | 
			
		||||
	RSTRING(str)->ptr = buf;
 | 
			
		||||
	RSTRING(str)->aux.capa = blen;
 | 
			
		||||
	RSTRING(dest)->ptr = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue