Skip to content

Commit

Permalink
vm: use saved named for the function table
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCrion committed Dec 20, 2024
1 parent d0a77d2 commit 818813f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/func.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ vm_function_t *vm_func_lookup ( gchar *name )

func = g_malloc0(sizeof(vm_function_t));
func->name = g_strdup(name);
g_hash_table_insert(vm_func_table, name, func);
g_hash_table_insert(vm_func_table, func->name, func);

return func;
}
Expand Down

0 comments on commit 818813f

Please sign in to comment.