summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-06-01 08:26:19 -0600
committerEduardo Chappa <chappa@washington.edu>2018-06-01 08:26:19 -0600
commitbd4fcf866fa5b84c658852d5ec495ef5800313ef (patch)
tree30e97188f5dc1874af8ddfcd8a5bba68fbda4c18 /pico
parent73ecda838fedab0861a4b3d41f8a733b02f97cc6 (diff)
downloadalpine-bd4fcf866fa5b84c658852d5ec495ef5800313ef.tar.xz
* When MOUSE is not defined, alpine attempts to free an undefined variable.
Reported by Christian Kujau.
Diffstat (limited to 'pico')
-rw-r--r--pico/pico.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pico/pico.c b/pico/pico.c
index 67e98596..d4ceb97e 100644
--- a/pico/pico.c
+++ b/pico/pico.c
@@ -1932,6 +1932,7 @@ free_pico_module_globals(void)
{
int i;
+#ifdef MOUSE
for(i = 0; i < 12; i++){
if(menuitems[i].kncp)
free_color_pair(&menuitems[i].kncp);
@@ -1942,6 +1943,8 @@ free_pico_module_globals(void)
menuitems[i].label = NULL;
}
}
+#endif /* MOUSE */
+
}