mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:50:49 +00:00
winebuild: Avoid calling asm_name twice in function arguments.
It returns a static buffer pointer and will free the first returned pointer on the second call.
This commit is contained in:
parent
53c4f638ef
commit
9d1175a464
|
@ -1021,8 +1021,11 @@ const char *asm_globl( const char *func )
|
|||
break;
|
||||
case PLATFORM_MINGW:
|
||||
case PLATFORM_WINDOWS:
|
||||
buffer = strmake( "\t.globl %s\n%s:", asm_name( func ), asm_name( func ) );
|
||||
{
|
||||
const char *name = asm_name( func );
|
||||
buffer = strmake( "\t.globl %s\n%s:", name, name );
|
||||
break;
|
||||
}
|
||||
default:
|
||||
buffer = strmake( "\t.globl %s\n\t.hidden %s\n%s:", func, func, func );
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue