mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fixes [ #430986 ] Buglet in PyUnicode_FromUnicode.
This commit is contained in:
		
							parent
							
								
									2c07195574
								
							
						
					
					
						commit
						8879a33613
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -297,9 +297,9 @@ PyObject *PyUnicode_FromUnicode(const Py_UNICODE *u, | |||
| 	    unicode = unicode_latin1[*u]; | ||||
| 	    if (!unicode) { | ||||
| 		unicode = _PyUnicode_New(1); | ||||
| 		unicode->str[0] = *u; | ||||
| 		if (!unicode) | ||||
| 		    return NULL; | ||||
| 		unicode->str[0] = *u; | ||||
| 		unicode_latin1[*u] = unicode; | ||||
| 	    } | ||||
| 	    Py_INCREF(unicode); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Marc-André Lemburg
						Marc-André Lemburg