diff options
author | 2020-01-25 22:59:22 +0000 | |
---|---|---|
committer | 2020-01-25 22:59:22 +0000 | |
commit | 1df2221fa32cc1e96c722489eb37cb1cd0d8bdb7 (patch) | |
tree | 1164e5d877ce64a255070f9e8ae203b0088d0d2c /tbl_opts.c | |
parent | 3127746e1c5864e767914a2fbeaf4564be79e2c8 (diff) | |
download | mandoc-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 'tbl_opts.c')
0 files changed, 0 insertions, 0 deletions