summaryrefslogtreecommitdiff
path: root/usr.bin/less/option.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-11-09 14:25:33 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-11-09 14:25:33 +0000
commitc019bd6c06fb2b6a70e0dda837ec1346e416e395 (patch)
treecddb03d4effb9309489578418031c44c23592793 /usr.bin/less/option.c
parentf14a9ba0ac2b5f84f20415bae9199fd48b0ab259 (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.c3
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);
}
}