mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
(libretro-db) Get rid of some memsets
This commit is contained in:
parent
3cfaf47637
commit
7ee65bfe5d
@ -111,7 +111,6 @@ static struct rmsgpack_dom_value query_func_is_true(
|
||||
unsigned argc, const struct argument *argv)
|
||||
{
|
||||
struct rmsgpack_dom_value res;
|
||||
memset(&res, 0, sizeof(res));
|
||||
|
||||
res.type = RDT_BOOL;
|
||||
res.val.bool_ = 0;
|
||||
@ -130,13 +129,11 @@ static struct rmsgpack_dom_value func_equals(
|
||||
{
|
||||
struct argument arg;
|
||||
struct rmsgpack_dom_value res;
|
||||
memset(&res, 0, sizeof(res));
|
||||
|
||||
res.type = RDT_BOOL;
|
||||
|
||||
if (argc != 1)
|
||||
res.val.bool_ = 0;
|
||||
else
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
arg = argv[0];
|
||||
|
||||
@ -152,6 +149,7 @@ static struct rmsgpack_dom_value func_equals(
|
||||
res.val.bool_ = (rmsgpack_dom_value_cmp(&input, &arg.a.value) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
@ -161,7 +159,6 @@ static struct rmsgpack_dom_value query_func_operator_or(
|
||||
{
|
||||
unsigned i;
|
||||
struct rmsgpack_dom_value res;
|
||||
memset(&res, 0, sizeof(res));
|
||||
|
||||
res.type = RDT_BOOL;
|
||||
res.val.bool_ = 0;
|
||||
@ -192,7 +189,6 @@ static struct rmsgpack_dom_value query_func_operator_and(
|
||||
{
|
||||
unsigned i;
|
||||
struct rmsgpack_dom_value res;
|
||||
memset(&res, 0, sizeof(res));
|
||||
|
||||
res.type = RDT_BOOL;
|
||||
res.val.bool_ = 0;
|
||||
@ -224,8 +220,6 @@ static struct rmsgpack_dom_value query_func_between(
|
||||
struct rmsgpack_dom_value res;
|
||||
unsigned i = 0;
|
||||
|
||||
memset(&res, 0, sizeof(res));
|
||||
|
||||
res.type = RDT_BOOL;
|
||||
res.val.bool_ = 0;
|
||||
|
||||
@ -263,7 +257,6 @@ static struct rmsgpack_dom_value query_func_glob(
|
||||
{
|
||||
struct rmsgpack_dom_value res;
|
||||
unsigned i = 0;
|
||||
memset(&res, 0, sizeof(res));
|
||||
|
||||
res.type = RDT_BOOL;
|
||||
res.val.bool_ = 0;
|
||||
@ -797,12 +790,12 @@ static struct rmsgpack_dom_value query_func_all_map(
|
||||
struct rmsgpack_dom_value res;
|
||||
struct rmsgpack_dom_value nil_value;
|
||||
struct rmsgpack_dom_value *value = NULL;
|
||||
memset(&res, 0, sizeof(res));
|
||||
|
||||
nil_value.type = RDT_NULL;
|
||||
res.type = RDT_BOOL;
|
||||
res.val.bool_ = 1;
|
||||
|
||||
nil_value.type = RDT_NULL;
|
||||
|
||||
if (argc % 2 != 0)
|
||||
{
|
||||
res.val.bool_ = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user