mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
tcg: Remove inconsistent g_strdup usage
The ts's name was allocated with strdup, but ts2's was being done with g_strdup. Makes them consistent with upstream Qemu.
This commit is contained in:
parent
6d80445fe1
commit
006a13026a
|
@ -636,7 +636,7 @@ TCGTemp *tcg_global_mem_new_internal(TCGContext *s, TCGType type, TCGv_ptr base,
|
|||
ts2->mem_offset = offset + (1 - bigendian) * 4;
|
||||
pstrcpy(buf, sizeof(buf), name);
|
||||
pstrcat(buf, sizeof(buf), "_1");
|
||||
ts2->name = g_strdup(buf);
|
||||
ts2->name = strdup(buf);
|
||||
} else {
|
||||
ts->base_type = type;
|
||||
ts->type = type;
|
||||
|
|
Loading…
Reference in a new issue