We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78f92e commit 9310660Copy full SHA for 9310660
lib/toolbox/str_buffer.c
@@ -4,7 +4,7 @@ const char* str_buffer_make_owned_clone(StrBuffer* buffer, const char* str) {
4
char* owned = strdup(str);
5
buffer->n_owned_strings++;
6
buffer->owned_strings =
7
- realloc(buffer->owned_strings, buffer->n_owned_strings * sizeof(const char*));
+ realloc(buffer->owned_strings, buffer->n_owned_strings * sizeof(const char*)); // -V701
8
buffer->owned_strings[buffer->n_owned_strings - 1] = owned;
9
return owned;
10
}
0 commit comments