diff options
| author | Leandro Pereira <leandro@hardinfo.org> | 2016-07-30 20:00:16 -0300 | 
|---|---|---|
| committer | Leandro Pereira <leandro@hardinfo.org> | 2016-07-30 20:00:16 -0300 | 
| commit | dba05904b24c3d498ccf0d9676ce40b16181a00f (patch) | |
| tree | ea9b71aec70ec7a1f65e4b8a5caed775061baf42 | |
| parent | a7d699b75c878eadc3cb8909f93f8b00a6ceb000 (diff) | |
Handle lsmod not being found
| -rw-r--r-- | modules/computer/modules.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/modules/computer/modules.c b/modules/computer/modules.c index dc4c1815..bbc05f42 100644 --- a/modules/computer/modules.c +++ b/modules/computer/modules.c @@ -47,6 +47,8 @@ scan_modules_do(void)      moreinfo_del_with_prefix("COMP:MOD");      lsmod_path = find_program("lsmod"); +    if (!lsmod_path) +        return;      lsmod = popen(lsmod_path, "r");      if (!lsmod) {          g_free(lsmod_path);  | 
