Skip to content

Commit bfc9801

Browse files
committed
FIXED: Fix missing pointer dereference
1 parent 2b1ab3b commit bfc9801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static char * my_strndup(const char * source, size_t n) {
234234

235235
// strlen is too slow if strlen(source) >> n
236236
for (len = 0; len < n; ++len) {
237-
if (test == '\0') {
237+
if (*test == '\0') {
238238
break;
239239
}
240240

0 commit comments

Comments
 (0)