Closed aidin36 closed 6 years ago
Thank you for working on this. I am currently going through old PRs and working with contributors to get them merged.
There are some issues with your patch:
1
on errors. Is there any reason you chose 18
?If you don't want to modify the behavior like this, I will change 18 to 1.
I agree that it is usually a good idea to return different values such that the caller can handle different errors accordingly. However, in this case, we (you) decided it is the callees responsibility to handle the error (i.e. display the error message) and it suffices to inform the caller about whether everything went fine or not.
Agreed.
Both issues fixed.
Merged with some minor whitespace changes, thanks!
Resolves Issue #32 Preventing Segmentation Fault if output file doesn't exists or user does not have access to it.