mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	st_nested_scopes was uninitialized trash. Jeremy should fix in a better
way; see code comments.
This commit is contained in:
		
							parent
							
								
									1cf0f1751f
								
							
						
					
					
						commit
						ff1f8521ac
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -4595,6 +4595,12 @@ symtable_init() | |||
| 	if (st == NULL) | ||||
| 		return NULL; | ||||
| 	st->st_pass = 1; | ||||
| 
 | ||||
| 	/* XXX Tim: Jeremy deleted the next line and everything went to hell.
 | ||||
| 	   XXX It should probably get fixed by getting rid of st_nested_scopes | ||||
| 	   XXX entirely. */ | ||||
|  	st->st_nested_scopes = 1; | ||||
| 
 | ||||
| 	st->st_filename = NULL; | ||||
| 	if ((st->st_stack = PyList_New(0)) == NULL) | ||||
| 		goto fail; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters