Skip to content

Commit 87d6ead

Browse files
committed
fix check
1 parent 8933f2b commit 87d6ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static void ParseAndSetPath(const char *pattern, char *dest,
106106
const uptr dest_size) {
107107
CHECK(pattern);
108108
CHECK(dest);
109-
CHECK_GT(dest_size, 1);
109+
CHECK_GE(dest_size, 1);
110110
dest[0] = '\0';
111111
uptr next_substr_start_idx = 0;
112112
for (uptr i = 0; i < internal_strlen(pattern) - 1; i++) {

0 commit comments

Comments
 (0)