Skip to content

Commit 9c72ee1

Browse files
more valid whitespace
1 parent 7aca15e commit 9c72ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/linters/c/alloc_linter.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ alloc_linter = function(c_obj) {
66
lines = c_obj$lines
77
# Be a bit more precise to avoid mentions in comments, and allow
88
# malloc(0) to be used for convenience (e.g. #6757)
9-
alloc_lines = grep(R"{=\s*([(]\w+\s*[*][)])?\s*[mc]alloc[(][^0]}", lines)
9+
alloc_lines = grep(R"{=\s*([(]\s*\w+\s*[*]\s*[)])?\s*[mc]alloc[(][^0]}", lines)
1010
if (!length(alloc_lines)) return()
1111
# int *tmp=(int*)malloc(...); or just int tmp=malloc(...);
1212
alloc_keys = lines[alloc_lines] |>

0 commit comments

Comments
 (0)