Skip to content

Commit 2864bef

Browse files
committed
fix gcc warning
Signed-off-by: Rob Johnson <[email protected]>
1 parent acf129f commit 2864bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/memtable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ memtable_context_create(platform_heap_id hid,
309309
{
310310
memtable_context *ctxt =
311311
TYPED_FLEXIBLE_STRUCT_ZALLOC(hid, ctxt, mt, cfg->max_memtables);
312-
ctxt->cc = cc;
313-
memmove(&ctxt->cfg, cfg, sizeof(ctxt->cfg));
312+
ctxt->cc = cc;
313+
ctxt->cfg = *cfg;
314314

315315
platform_mutex_init(
316316
&ctxt->incorporation_mutex, platform_get_module_id(), hid);

0 commit comments

Comments
 (0)