Skip to content

Fix refcount fgets for size 1 and a sticky error flag - #606

Merged
nunoplopes merged 2 commits into
Cpp2Rust:masterfrom
lucic71:35-fgets-edge-cases
Nov 5, 2026
Merged

nunoplopes merged 2 commits into
Cpp2Rust:masterfrom
lucic71:35-fgets-edge-cases

Conversation

@lucic71

@lucic71 lucic71 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Refcount wrongly returned NULL when n == 1 and after an earlier error on the stream.

@nunoplopes
nunoplopes merged commit 92b3a5f into Cpp2Rust:master Nov 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants