diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-05-09 23:56:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-05-09 23:56:27 +0000 |
commit | 0b4794c038c9e9197a108b639aea3f39e723a717 (patch) | |
tree | ac50d719c675e1b996c0566c179bc3429108b607 /lib | |
parent | c7804738f38b50dbd76ee47b33818125b6ffa5fd (diff) |
Various cleanup in incard():
* get_line() always returns the same non-NULL pointer,
so testing the return value is useless.
* Garbage collect the unused variable *line.
* Check for end-of-buffer before parsing the next word instead of after it.
* Skip strlen() when the length has been measured three lines before anyway.
* Do not initialize local variables over and over again.
feedback and ok pjanzen@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions