ecore/app: permit resetting app args to uninitialized (zeroed) state

Summary:
this is mainly useful for unit testing, but unsetting values should not be
treated as an error

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10412
This commit is contained in:
Mike Blumenkrantz 2019-10-24 18:14:25 +02:00 committed by Xavi Artigas
parent fdb931fb6e
commit f5e9af8c67
1 changed files with 4 additions and 2 deletions

View File

@ -17,8 +17,10 @@ ecore_app_args_set(int argc,
{
EINA_MAIN_LOOP_CHECK_RETURN;
if ((argc < 1) ||
(!argv)) return;
if ((argc < 1) || (!argv))
{
if (argc || argv) return;
}
app_argc = argc;
app_argv = (char **)argv;
}