diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-11-09 14:25:33 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-11-09 14:25:33 +0000 |
commit | c019bd6c06fb2b6a70e0dda837ec1346e416e395 (patch) | |
tree | cddb03d4effb9309489578418031c44c23592793 /usr.bin/less/option.c | |
parent | f14a9ba0ac2b5f84f20415bae9199fd48b0ab259 (diff) |
Remove NULL-checks before free(), a needless comment, and a needless
void* cast.
ok nicm@
Diffstat (limited to 'usr.bin/less/option.c')
-rw-r--r-- | usr.bin/less/option.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/less/option.c b/usr.bin/less/option.c index 7bae2b0b6c1..b0ea0dbcfe3 100644 --- a/usr.bin/less/option.c +++ b/usr.bin/less/option.c @@ -307,8 +307,7 @@ scan_option(char *s) */ if (o->ofunc != NULL) (*o->ofunc)(INIT, str); - if (str != NULL) - free(str); + free(str); } } |