From c680535cffeb2121d5bff9660df556282478f934 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 24 Oct 2019 18:14:25 +0200 Subject: [PATCH] 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 --- src/lib/ecore/ecore_app.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore/ecore_app.c b/src/lib/ecore/ecore_app.c index a3d5debc71..605f046534 100644 --- a/src/lib/ecore/ecore_app.c +++ b/src/lib/ecore/ecore_app.c @@ -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; }