changed some heap vars to stacks vars. gentoo bug# 113219
authorPhilip Kovacs <pkovacs@users.sourceforge.net>
Fri, 25 Nov 2005 04:17:54 +0000 (04:17 +0000)
committerPhilip Kovacs <pkovacs@users.sourceforge.net>
Fri, 25 Nov 2005 04:17:54 +0000 (04:17 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@429 7f574dfc-610e-0410-a909-a81674777703

src/conky.c
src/conky.h

index a6bb68f..0ec1082 100644 (file)
 #define MAIL_FILE "$MAIL"
 #define MAX_IF_BLOCK_DEPTH 5
 
-/* defining SIGNAL_BLOCKING will cause conky to block asynchronous signal handlin,
- * in favor of inspecting for pending signals synchronously.  this is experimental
- * code designed to avoid signal events in slow/blocking system calls like select().
- * use #undef SIGNAL_BLOCKING for the tradiational, asynchronous signal handling. */
-
 /* #define SIGNAL_BLOCKING */
 #undef SIGNAL_BLOCKING
 
@@ -5089,11 +5084,6 @@ int main(int argc, char **argv)
        init_X11();
 #endif /* X11 */
 
-       tmpstring1 = (char *)
-           malloc(TEXT_BUFFER_SIZE);
-       tmpstring2 = (char *)
-           malloc(TEXT_BUFFER_SIZE);
-
        /* load current_config or CONFIG_FILE */
 
 #ifdef CONFIG_FILE
@@ -5287,8 +5277,7 @@ int main(int argc, char **argv)
        }
 
        main_loop();
-       free(tmpstring1);
-       free(tmpstring2);
+
        return 0;
 }
 
index 29731c3..58f4fd7 100644 (file)
@@ -209,8 +209,8 @@ int top_mem;
 
 int use_spacer;
 
-char *tmpstring1;
-char *tmpstring2;
+char tmpstring1[TEXT_BUFFER_SIZE];
+char tmpstring2[TEXT_BUFFER_SIZE];
 
 #ifdef X11
 /* in x11.c */