diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-25 22:59:22 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-25 22:59:22 +0000 |
commit | 9a0648ee1954e83311194a35ce390db361aeac67 (patch) | |
tree | caa1728eed961eef1285307b8908857673c759a7 /preconv.c | |
parent | bd6f66569773d0cec18ee728ff380ff738d81246 (diff) | |
download | mandoc-9a0648ee1954e83311194a35ce390db361aeac67.tar.gz |
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 'preconv.c')
0 files changed, 0 insertions, 0 deletions