mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-02 20:18:30 +00:00
changed some heap vars to stacks vars. gentoo bug# 113219
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@429 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
c19d039e69
commit
44e5c1b6a4
13
src/conky.c
13
src/conky.c
@ -34,11 +34,6 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user