smenu
smenu copied to clipboard
Completion of error handling
Would you like to add more error handling for return values from functions like the following?
Can you be more precise? The "usage" function returns no value and the value returned by "parse_sed_like_string" is already tested.
I suggest to avoid ignorance of return values a bit more. How do you think about to care also if a file output or a string copy really succeeded?
Looks to me as this issue was resolved on same day - but the issue was not closed.
The return value for strdup are handled now with the changes in https://github.com/p-gen/smenu/commit/768f82bbe75abbbc88fbc5fad57252cc2dde8208 And ignoring the return value of *printf functions is usually not considered that a relevant issue - at least not, when this is done during output of help messages to stdout.
:thought_balloon: Would it matter if output redirection can occasionally fail?