mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +08:00
Remove the fix from my last commit, it was pointed by scan-build and is a false positive, thanks to grischka for pointing it.
This commit is contained in:
parent
0ba7c8670c
commit
700c2f769b
2
libtcc.c
2
libtcc.c
@ -330,7 +330,7 @@ ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh
|
|||||||
{
|
{
|
||||||
Section *sec;
|
Section *sec;
|
||||||
|
|
||||||
sec = tcc_mallocz(sizeof(Section) + strlen(name)+1);
|
sec = tcc_mallocz(sizeof(Section) + strlen(name));
|
||||||
strcpy(sec->name, name);
|
strcpy(sec->name, name);
|
||||||
sec->sh_type = sh_type;
|
sec->sh_type = sh_type;
|
||||||
sec->sh_flags = sh_flags;
|
sec->sh_flags = sh_flags;
|
||||||
|
Loading…
Reference in New Issue
Block a user