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

proc/system: fix read always returning 0 #96

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

fischerling
Copy link
Contributor

Since all the proc_system read functions use the return value of sprintf, none of them actually return 0 on success.
Fix the wrong success detection by considering anything >= 0 a success.

FIXES: b01eccc

Since all the proc_system read functions use the return value of sprintf,
none of them actually return 0 on success.
Fix the wrong success detection by considering anything >= 0 a success.

FIXES: b01eccc
@fischerling fischerling force-pushed the fix-proc-system-read branch from c2babcb to 61de914 Compare July 30, 2024 16:26
@Galfurian Galfurian merged commit f298608 into mentos-team:develop Aug 13, 2024
18 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