Fix alias action config parsing

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent 35ccb73638
commit 9561a565c5
  1. 2
      src/main/plugin_core.c

@ -262,7 +262,7 @@ static liAction* core_alias(liServer *srv, liPlugin* p, liValue *val) {
return NULL;
}
vl = val->data.list;
if (g_array_index(vl, liValue*, 0)->type == LI_VALUE_STRING && g_array_index(vl, liValue*, 1)->type == LI_VALUE_STRING) {
if (vl->len == 2 && g_array_index(vl, liValue*, 0)->type == LI_VALUE_STRING && g_array_index(vl, liValue*, 1)->type == LI_VALUE_STRING) {
a = g_array_sized_new(FALSE, TRUE, sizeof(core_alias_config), 1);
ac.prefix = li_value_extract_ptr(g_array_index(vl, liValue*, 0));
ac.path = li_value_extract_ptr(g_array_index(vl, liValue*, 1));

Loading…
Cancel
Save