diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-05-30 12:16:11 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-05-30 12:16:11 +0000 |
commit | 2742b3f5e7e0a13dcd4136f357176a3362a0e778 (patch) | |
tree | 3f5846098df1f9f14c06f4dd742a34fa9738e675 /hardinfo2/util.c | |
parent | 86dbf99b5f054bef60d0fc8bea8043c1d354e470 (diff) |
Fix usbfs display.
Abort HardInfo if user choses not to load a module dependency (when using -m command-line switch).
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index 11d2ad28..f83fc1c2 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -705,8 +705,8 @@ static GSList *modules_check_deps(GSList * modules) modules = g_slist_prepend(modules, mod); modules = modules_check_deps(modules); /* re-check dependencies */ } else { - modules = g_slist_remove(modules, module); - module_free(module); + g_error("HardInfo cannot run without loading the additional module."); + exit(1); } gtk_widget_destroy(dialog); |