This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alex.henrie
Recipients alex.henrie
Date 2021-03-02.02:16:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614651387.39.0.0295195640102.issue43359@roundup.psfhosted.org>
In-reply-to
Content
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>
History
Date User Action Args
2021-03-02 02:16:27alex.henriesetrecipients: + alex.henrie
2021-03-02 02:16:27alex.henriesetmessageid: <1614651387.39.0.0295195640102.issue43359@roundup.psfhosted.org>
2021-03-02 02:16:27alex.henrielinkissue43359 messages
2021-03-02 02:16:27alex.henriecreate