Check args before initializing signal handlers.
authorAndre Noll <maan@systemlinux.org>
Sun, 1 Jun 2008 16:31:05 +0000 (18:31 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 1 Jun 2008 16:31:05 +0000 (18:31 +0200)
adu.c

diff --git a/adu.c b/adu.c
index c21c37f..c35c535 100644 (file)
--- a/adu.c
+++ b/adu.c
@@ -510,10 +510,10 @@ int main(int argc, char **argv)
        };
 
        cmdline_parser_ext(argc, argv, &conf, &params); /* aborts on errors */
-       ret = init_signals();
+       ret = check_args();
        if (ret < 0)
                goto out;
-       ret = check_args();
+       ret = init_signals();
        if (ret < 0)
                goto out;
        ret = -E_SYNTAX;