aboutsummaryrefslogtreecommitdiff
path: root/modules/computer.c
diff options
context:
space:
mode:
authorL Pereira <l@tia.mat.br>2021-11-07 23:13:00 -0800
committerL Pereira <l@tia.mat.br>2021-11-07 23:26:18 -0800
commit56d9d97a38f23b485800cd436162e11963b1900e (patch)
treec9eabb7d9220e968005c2ab970e2a55e93241ee7 /modules/computer.c
parent178a114c7a1a1774e5c95c72aa801a1a6006cbb9 (diff)
Hack: make ASan happy by moving definition of lginterval to shell
These globals are really nasty and one of the reasons I hate looking at the HardInfo code.
Diffstat (limited to 'modules/computer.c')
-rw-r--r--modules/computer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 0f48d907..e516cd54 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -116,7 +116,6 @@ static ModuleEntry entries[] = {
gchar *module_list = NULL;
Computer *computer = NULL;
gchar *meminfo = NULL;
-gchar *lginterval = NULL;
gchar *hi_more_info(gchar * entry)
{
@@ -370,6 +369,7 @@ gchar *callback_dev(void)
gchar *callback_memory_usage()
{
+ extern gchar *lginterval;
return g_strdup_printf("[Memory]\n"
"%s\n"
"[$ShellParam$]\n"