mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False
whereas the fchmodat() function is not avaialble.
This commit is contained in:
		
							parent
							
								
									c406a121f7
								
							
						
					
					
						commit
						45e90394e7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2961,7 +2961,7 @@ posix_chflags(PyObject *self, PyObject *args, PyObject *kwargs)
 | 
				
			||||||
    unsigned long flags;
 | 
					    unsigned long flags;
 | 
				
			||||||
    int follow_symlinks = 1;
 | 
					    int follow_symlinks = 1;
 | 
				
			||||||
    int result;
 | 
					    int result;
 | 
				
			||||||
    PyObject *return_value;
 | 
					    PyObject *return_value = NULL;
 | 
				
			||||||
    static char *keywords[] = {"path", "flags", "follow_symlinks", NULL};
 | 
					    static char *keywords[] = {"path", "flags", "follow_symlinks", NULL};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    memset(&path, 0, sizeof(path));
 | 
					    memset(&path, 0, sizeof(path));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue