aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-01-25 22:59:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-01-25 22:59:22 +0000
commit1df2221fa32cc1e96c722489eb37cb1cd0d8bdb7 (patch)
tree1164e5d877ce64a255070f9e8ae203b0088d0d2c /lib.in
parent3127746e1c5864e767914a2fbeaf4564be79e2c8 (diff)
downloadmandoc-1df2221fa32cc1e96c722489eb37cb1cd0d8bdb7.tar.gz
mandoc-1df2221fa32cc1e96c722489eb37cb1cd0d8bdb7.tar.zst
mandoc-1df2221fa32cc1e96c722489eb37cb1cd0d8bdb7.zip
Minor cleanup, no functional change:
Do not abuse strstr(3) to check whether one long string starts with another long string. Instead, use strncmp(3) with the proper length. In set_basedir(), also reset *basedir in the error brances for extra safety. While here, invert some more Yoda conditions in the neighbourhood.
Diffstat (limited to 'lib.in')
0 files changed, 0 insertions, 0 deletions