aboutsummaryrefslogtreecommitdiff
path: root/modules
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
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')
-rw-r--r--modules/computer.c2
-rw-r--r--modules/devices.c1
2 files changed, 1 insertions, 2 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"
diff --git a/modules/devices.c b/modules/devices.c
index 1672d550..93063ad4 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -127,7 +127,6 @@ gchar *input_list = NULL;
gboolean storage_no_nvme = FALSE;
gchar *storage_list = NULL;
gchar *battery_list = NULL;
-gchar *lginterval = NULL;
/* in dmi_memory.c */
gchar *memory_devices_get_info();