1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00

some c standards only allow initialisations at the start of a function

This commit is contained in:
Nikolas Garofil 2009-06-03 19:17:45 +02:00
parent 1085ec48cc
commit 3656bced46

View File

@ -7253,6 +7253,7 @@ static void set_default_configurations_for_x(void)
static void set_default_configurations(void) static void set_default_configurations(void)
{ {
int i;
update_uname(); update_uname();
fork_to_background = 0; fork_to_background = 0;
total_run_times = 0; total_run_times = 0;
@ -7316,7 +7317,6 @@ static void set_default_configurations(void)
#ifdef HAVE_OPENMP #ifdef HAVE_OPENMP
#pragma omp parallel for #pragma omp parallel for
#endif /* HAVE_OPENMP */ #endif /* HAVE_OPENMP */
int i;
for (i = 0; i < MAX_TEMPLATES; i++) { for (i = 0; i < MAX_TEMPLATES; i++) {
template[i] = strdup(""); template[i] = strdup("");
} }