forked from enlightenment/efl
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:
parent
fdb931fb6e
commit
f5e9af8c67
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue