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 3e5b814 commit 0e1681aCopy full SHA for 0e1681a
src/AST/ast_layout.c
@@ -405,6 +405,9 @@ void ast_layout_endpoint_init(ast_layout_endpoint_t *endpoint){
405
successful_t ast_layout_endpoint_init_with(ast_layout_endpoint_t *endpoint, uint16_t *indices, length_t length){
406
if(length > AST_LAYOUT_MAX_DEPTH) return false;
407
408
+ // Silence warnings about copying uninitialized data
409
+ memset(endpoint->indices, 0, sizeof(uint16_t) * AST_LAYOUT_MAX_DEPTH);
410
+
411
// Set end index, so we can determine the length of this endpoint's indices
412
if(length != AST_LAYOUT_MAX_DEPTH) endpoint->indices[length] = AST_LAYOUT_ENDPOINT_END_INDEX;
413
0 commit comments