From 17d4658242fce592fbbc68b9c0d9ae2233a809f3 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sun, 14 Nov 2010 14:34:39 +0100 Subject: [PATCH] Fix "Conky usually segfaults on config file changes" (sf.net #3100221) Someone needs to learn the difference between passing by value and passing by reference. Bug reported by Kevin Lyles. --- src/conky.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conky.cc b/src/conky.cc index a625442f..b41ae170 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -2497,7 +2497,7 @@ void clean_up_x11(void) } #endif -void free_specials(special_t *current) { +void free_specials(special_t *¤t) { if (current) { free_specials(current->next); if(current->type == GRAPH)