This commit is contained in:
Olaf Rempel 2007-03-31 21:32:24 +02:00
parent bc0bd5fffb
commit 576960f682
2 changed files with 2 additions and 14 deletions

View File

@ -134,7 +134,6 @@ static int init(void)
return -1; return -1;
} }
int retval = -1;
struct conf_tupel *tupel; struct conf_tupel *tupel;
list_for_each_entry(tupel, &section->tupel, list) { list_for_each_entry(tupel, &section->tupel, list) {
if (strcmp(tupel->option, "server")) if (strcmp(tupel->option, "server"))
@ -202,14 +201,8 @@ static int init(void)
log_print(LOG_INFO, "p_apache: added server '%s'", entry->name); log_print(LOG_INFO, "p_apache: added server '%s'", entry->name);
list_add_tail(&entry->list, &server_list); list_add_tail(&entry->list, &server_list);
retval = 0;
} }
return 0;
if (retval == -1)
free(rx_buf);
return retval;
} }
static int fini(void) static int fini(void)

View File

@ -150,8 +150,6 @@ static int probe(void)
static int init(void) static int init(void)
{ {
int retval = -1;
struct conf_section *section; struct conf_section *section;
section = config_get_section("p_mysql"); section = config_get_section("p_mysql");
if (section == NULL) { if (section == NULL) {
@ -187,11 +185,8 @@ static int init(void)
log_print(LOG_DEBUG, "p_mysql: added server '%s'", entry->name); log_print(LOG_DEBUG, "p_mysql: added server '%s'", entry->name);
list_add_tail(&entry->list, &server_list); list_add_tail(&entry->list, &server_list);
retval = 0;
} }
return 0;
return retval;
} }
static int fini(void) static int fini(void)