Skip to content

Commit 3e5b814

Browse files
committed
Minor set of bug fixes
1 parent 38efdc5 commit 3e5b814

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/AST/ast_layout.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,6 @@ successful_t ast_layout_endpoint_init_with(ast_layout_endpoint_t *endpoint, uint
408408
// Set end index, so we can determine the length of this endpoint's indices
409409
if(length != AST_LAYOUT_MAX_DEPTH) endpoint->indices[length] = AST_LAYOUT_ENDPOINT_END_INDEX;
410410

411-
// Silence warnings about copying uninitialized data
412-
memset(endpoint->indices, 0, sizeof(uint16_t) * AST_LAYOUT_MAX_DEPTH);
413-
414411
memcpy(endpoint->indices, indices, sizeof(uint16_t) * length);
415412
return true;
416413
}

0 commit comments

Comments
 (0)