Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc changes #1981

Merged
merged 5 commits into from
Jan 6, 2025
Merged

misc changes #1981

merged 5 commits into from
Jan 6, 2025

Conversation

N-R-K
Copy link
Collaborator

@N-R-K N-R-K commented Jan 5, 2025

A couple misc changes. Shouldn't result in any functional change.

src/nnn.c Dismissed Show dismissed Hide dismissed
src/nnn.c Dismissed Show dismissed Hide dismissed
src/nnn.c Dismissed Show dismissed Hide dismissed
src/nnn.c Dismissed Show dismissed Hide dismissed
src/nnn.c Dismissed Show dismissed Hide dismissed
N-R-K added 3 commits January 5, 2025 22:27
also check for `outlen < 3` since the function
unconditionally writes at least 3 bytes.
the open() might fail and then dup2 will be called with -1 fd.
clang-tidy complains about this.
just open "/dev/null" once at program startup, check the result,
and then reuse that fd throughout.
@jarun jarun merged commit 1d41fe3 into jarun:master Jan 6, 2025
7 checks passed
@N-R-K N-R-K deleted the misc-changes branch January 6, 2025 18:16
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