[Midnightbsd-cvs] [MidnightBSD/src] ceb4f8: batt.c: initialize all local variables
Lucas Holt
noreply at github.com
Thu Jul 9 15:25:33 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: ceb4f818a2c6b11d3143aa8099f6f2043cf0f638
https://github.com/MidnightBSD/src/commit/ceb4f818a2c6b11d3143aa8099f6f2043cf0f638
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
M usr.bin/batt/batt.c
Log Message:
-----------
batt.c: initialize all local variables
Initialize life, time, units, acline, len, and ch variables at declaration
to avoid potential undefined behavior.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe at mistral.ai>
Commit: 17d3923b9b2f7ffafd2c298134d329dca3f3940f
https://github.com/MidnightBSD/src/commit/17d3923b9b2f7ffafd2c298134d329dca3f3940f
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
M usr.bin/batt/batt.c
Log Message:
-----------
batt.c: fix compact output format for -u flag
Add trailing space to units output in compact mode to match the
format used for life and time values. Without this, the output
format was inconsistent (e.g., '95 120 1' instead of '95 120 1 ').
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe at mistral.ai>
Commit: f8dfc612760cb61dd479eab63ecd89ec50979ad9
https://github.com/MidnightBSD/src/commit/f8dfc612760cb61dd479eab63ecd89ec50979ad9
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
M usr.bin/batt/tests/batt_test.c
Log Message:
-----------
batt tests: fix stdio flush and update expected output
- Change _exit() to exit() in test helper to properly flush stdio
buffers, ensuring printf output reaches the test harness
- Update concise_all_flags test to expect trailing space in compact
output, matching the fix in batt.c
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe at mistral.ai>
Compare: https://github.com/MidnightBSD/src/compare/51971dcca82d...f8dfc612760c
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list