Skip to content

Commit

Permalink
Avoid unit testing strchr()
Browse files Browse the repository at this point in the history
strchr() is a libc function and can be assumed correct.

Suggested-by: Marek Marczykowski-Górecki <[email protected]>
  • Loading branch information
DemiMarie committed Jan 31, 2023
1 parent 3b7f159 commit a1cdd44
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion qrexec-lib/unpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ static int opendir_safe(int dirfd, char *path, const char **last_segment)
assert(this_segment);
char *next = strchr(this_segment, '/');
if (next) {
assert(*next == '/');
*next = '\0';
next_segment = next + 1;
} else {
Expand Down

0 comments on commit a1cdd44

Please sign in to comment.