Issues addressed:
-Wunuset-parameter warnings resolved;
- Inserted calls to
csv_free() at appropriate places if exit() or err() was called due to an error;
- Fixed missing
fclose() in main() for infile (if infile != stdin).
(Note: I did not test all of the options. Command line used was:
csvbreak -f 1 -h -r -P ../OUT_ [outfile]
)
csvbreak_patch.txt
Issues addressed:
-Wunuset-parameterwarnings resolved;csv_free()at appropriate places ifexit()orerr()was called due to an error;fclose()in main() forinfile(ifinfile != stdin).(Note: I did not test all of the options. Command line used was:
csvbreak -f 1 -h -r -P ../OUT_ [outfile])
csvbreak_patch.txt