mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Get rid of unused-but-set-variable warning. len and len2 should be equal and len2 is technically more correct, too.
This commit is contained in:
		
							parent
							
								
									4d9d2563f5
								
							
						
					
					
						commit
						8714cfdc4a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -9891,7 +9891,7 @@ os_confstr_impl(PyModuleDef *module, int name)
 | 
				
			||||||
            return PyErr_NoMemory();
 | 
					            return PyErr_NoMemory();
 | 
				
			||||||
        len2 = confstr(name, buf, len);
 | 
					        len2 = confstr(name, buf, len);
 | 
				
			||||||
        assert(len == len2);
 | 
					        assert(len == len2);
 | 
				
			||||||
        result = PyUnicode_DecodeFSDefaultAndSize(buf, len-1);
 | 
					        result = PyUnicode_DecodeFSDefaultAndSize(buf, len2-1);
 | 
				
			||||||
        PyMem_Free(buf);
 | 
					        PyMem_Free(buf);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue