diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2012-01-26 22:14:43 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2012-01-26 22:14:43 -0200 |
commit | d3b9aa19f04e6be78afb8497e7808a3d42042bf2 (patch) | |
tree | 340e9be8f863e1ad29e1da91cd87a66409d6f706 /hardinfo/hardinfo.c | |
parent | d9e242117b7a73dd3057af25956027a361f7999f (diff) |
Better manage moreinfo hashes
Have only one for the whole program and use per-module namespaces/prefixes
so that each module can clear its own information easily.
Diffstat (limited to 'hardinfo/hardinfo.c')
-rw-r--r-- | hardinfo/hardinfo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hardinfo/hardinfo.c b/hardinfo/hardinfo.c index 784a3c06..ffe35920 100644 --- a/hardinfo/hardinfo.c +++ b/hardinfo/hardinfo.c @@ -115,6 +115,9 @@ int main(int argc, char **argv) /* initialize vendor database */ vendor_init(); + /* initialize moreinfo */ + moreinfo_init(); + if (params.run_xmlrpc_server) { g_type_init(); @@ -156,6 +159,8 @@ int main(int argc, char **argv) g_error("Don't know what to do. Exiting."); } + moreinfo_shutdown(); + DEBUG("finished"); return 0; } |