-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mxqd: Make setup_cronolog() into void function
Currently, setup_cronolog() returns on errors. However, in most error paths, it leaks one or more file descriptors. The leaked descriptors triggers warnings in with the gcc 13 static analyzer. As the only caller of this functions terminates the prohram on any error anyway, don't fix the file descriptor leaks, but terminate right after any error from inside the function.
- Loading branch information
Showing
1 changed file
with
15 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters