git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@2896
ffa7fe5e-494d-0410-b361-
a75ebd5db220
res->attr.type=list[0]->type;
res->attr.u.str=g_strdup(gettext(list[0]->u.str));
res->attr.type=list[0]->type;
res->attr.u.str=g_strdup(gettext(list[0]->u.str));
- } if (!strncmp(function,"new ",4)) {
+ } else if (!strncmp(function,"new ",4)) {
enum attr_type attr_type=attr_from_name(function+4);
if (attr_type != attr_none) {
struct object_func *func=object_func_lookup(attr_type);
enum attr_type attr_type=attr_from_name(function+4);
if (attr_type != attr_none) {
struct object_func *func=object_func_lookup(attr_type);