Message387894
The function Py_UniversalNewlineFgets currently initializes the variable c to 'x' and then overwrites it without ever reading that value back. There used to be code that read back c's initial value, but it was commented out by commit b94767ff44edf5d461d7cb1c8eb5160f83886358 (bpo-8914) in 2011. So at this point, removing the dead initialization will not trigger a compiler warning or cause any other undesired behavior.
Defect identified by scan-build <https://clang-analyzer.llvm.org/scan-build.html> |
|
Date |
User |
Action |
Args |
2021-03-02 02:16:27 | alex.henrie | set | recipients:
+ alex.henrie |
2021-03-02 02:16:27 | alex.henrie | set | messageid: <1614651387.39.0.0295195640102.issue43359@roundup.psfhosted.org> |
2021-03-02 02:16:27 | alex.henrie | link | issue43359 messages |
2021-03-02 02:16:27 | alex.henrie | create | |
|