mirror of
https://github.com/libretro/libretro-fceumm.git
synced 2025-03-03 21:57:16 +00:00
Static code analysis fixes
This commit is contained in:
parent
6b4c419f7a
commit
1b91001c95
@ -74,7 +74,10 @@ static int asprintf(char **strp, const char *fmt, ...) {
|
||||
|
||||
va_start(ap, fmt);
|
||||
if (!(*strp = malloc(2048)))
|
||||
{
|
||||
va_end(ap);
|
||||
return(0);
|
||||
}
|
||||
ret = vsnprintf(*strp, 2048, fmt, ap);
|
||||
va_end(ap);
|
||||
return(ret);
|
||||
|
Loading…
x
Reference in New Issue
Block a user