From: Tomas Mlcoch Date: Wed, 11 Sep 2013 12:13:01 +0000 (+0200) Subject: Move library initialization up X-Git-Tag: upstream/0.2.1~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a227d36e93c23a027759435d02a11429b7035201;p=services%2Fcreaterepo_c.git Move library initialization up --- diff --git a/src/createrepo_c.c b/src/createrepo_c.c index 84496c3..f1e2158 100644 --- a/src/createrepo_c.c +++ b/src/createrepo_c.c @@ -768,6 +768,12 @@ main(int argc, char **argv) } + // Init package parser + + cr_package_parser_init(); + cr_xml_dump_init(); + + // Thread pool - Creation struct UserData user_data; @@ -1087,13 +1093,6 @@ main(int argc, char **argv) } } - - // Init package parser - - cr_package_parser_init(); - cr_xml_dump_init(); - - // Thread pool - User data initialization user_data.pri_f = pri_cr_file;