From 9e85f9cee6d0d923d4d76d5f936bbcb7a0610f26 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 9 Oct 2009 19:44:23 -0700 Subject: commit post-processing performance optimization * convert subshell invocations to library function calls. * reduce boot time by ~40 seconds for "certain configuration". --- src/delete.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/delete.c') diff --git a/src/delete.c b/src/delete.c index 3011c12..f432934 100644 --- a/src/delete.c +++ b/src/delete.c @@ -148,6 +148,9 @@ int main(int argc, char **argv) char *cp, *delp, *endp; boolean do_umount; + /* this is needed before calling certain glib functions */ + g_type_init(); + cli_operation_name = "Delete"; if (initialize_output() == -1) { -- cgit v1.2.3