Skip to content

Commit 9310660

Browse files
toolbox: silence pvs warning
1 parent a78f92e commit 9310660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/toolbox/str_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const char* str_buffer_make_owned_clone(StrBuffer* buffer, const char* str) {
44
char* owned = strdup(str);
55
buffer->n_owned_strings++;
66
buffer->owned_strings =
7-
realloc(buffer->owned_strings, buffer->n_owned_strings * sizeof(const char*));
7+
realloc(buffer->owned_strings, buffer->n_owned_strings * sizeof(const char*)); // -V701
88
buffer->owned_strings[buffer->n_owned_strings - 1] = owned;
99
return owned;
1010
}

0 commit comments

Comments
 (0)