mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Initialize rarch_setting_t with memset
This commit is contained in:
parent
8f31edf14b
commit
eeaa83998c
@ -1627,7 +1627,8 @@ static rarch_setting_t setting_action_setting(const char* name,
|
||||
const char* short_description,
|
||||
const char *group, const char *subgroup)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = ST_ACTION;
|
||||
result.name = name;
|
||||
@ -1661,7 +1662,8 @@ static rarch_setting_t setting_action_setting(const char* name,
|
||||
**/
|
||||
static rarch_setting_t setting_group_setting(enum setting_type type, const char* name)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = type;
|
||||
result.name = name;
|
||||
@ -1685,7 +1687,8 @@ static rarch_setting_t setting_group_setting(enum setting_type type, const char*
|
||||
static rarch_setting_t setting_subgroup_setting(enum setting_type type,
|
||||
const char* name, const char *parent_name)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = type;
|
||||
result.name = name;
|
||||
@ -1719,7 +1722,8 @@ static rarch_setting_t setting_float_setting(const char* name,
|
||||
const char *rounding, const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = ST_FLOAT;
|
||||
result.name = name;
|
||||
@ -1769,7 +1773,8 @@ static rarch_setting_t setting_bool_setting(const char* name,
|
||||
const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = ST_BOOL;
|
||||
result.name = name;
|
||||
@ -1817,7 +1822,8 @@ static rarch_setting_t setting_int_setting(const char* name,
|
||||
const char *group, const char *subgroup, change_handler_t change_handler,
|
||||
change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = ST_INT;
|
||||
result.name = name;
|
||||
@ -1857,7 +1863,8 @@ static rarch_setting_t setting_uint_setting(const char* name,
|
||||
unsigned int default_value, const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = ST_UINT;
|
||||
result.name = name;
|
||||
@ -1902,7 +1909,8 @@ static rarch_setting_t setting_hex_setting(const char* name,
|
||||
unsigned int default_value, const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = ST_HEX;
|
||||
result.name = name;
|
||||
@ -1948,7 +1956,8 @@ static rarch_setting_t setting_bind_setting(const char* name,
|
||||
const struct retro_keybind* default_value,
|
||||
const char *group, const char *subgroup)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = ST_BIND;
|
||||
result.name = name;
|
||||
@ -1994,7 +2003,8 @@ rarch_setting_t setting_string_setting(enum setting_type type,
|
||||
const char *group, const char *subgroup, change_handler_t change_handler,
|
||||
change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result = {0};
|
||||
rarch_setting_t result;
|
||||
memset(&result, 0, sizeof(result));
|
||||
|
||||
result.type = type;
|
||||
result.name = name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user