2
0
Fork 0

[core] Fix compiler warning introduced with previous commit (not shown on osx...)

This commit is contained in:
Thomas Porzelt 2009-10-04 17:00:19 +02:00
parent eff81a92e9
commit 5e1c8a7725
1 changed files with 1 additions and 2 deletions

View File

@ -545,7 +545,6 @@ static gboolean core_workers(liServer *srv, liPlugin* p, liValue *val) {
}
static gboolean core_module_load(liServer *srv, liPlugin* p, liValue *val) {
GString *name;
liValue *mods = li_value_new_list();
UNUSED(p);
@ -579,7 +578,7 @@ static gboolean core_module_load(liServer *srv, liPlugin* p, liValue *val) {
/* parameter types ok, load modules */
for (guint i = 0; i < mods->data.list->len; i++) {
name = g_array_index(mods->data.list, liValue*, i)->data.string;
GString *name = g_array_index(mods->data.list, liValue*, i)->data.string;
if (li_module_lookup(srv->modules, name->str)) {
DEBUG(srv, "module_load: module '%s' already loaded", name->str);
continue;