Skip to content

Commit

Permalink
Remove extra unnecessary check for null-terminator.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Jun 15, 2020
1 parent dc6962b commit ea9d986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mz_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ int32_t mz_path_resolve(const char *path, char *output, int32_t max_output) {
source += 1;
continue;
}
if ((*check != 0) && (*check == '.')) {
if (*check == '.') {
check += 1;

/* Remove . if at end of string and not at the beginning */
Expand Down

0 comments on commit ea9d986

Please sign in to comment.