Ticket #529: navit-529.patch

File navit-529.patch, 528 bytes (added by pini, 11 years ago)

Fix ticket #529

  • navit/command.c

    diff --git a/navit/command.c b/navit/command.c
    index 8c9397d..7648017 100644
    a b command_call_function(struct context *ctx, struct result *res) 
    384384                res->attr.type=list[0]->type;
    385385                res->attr.u.str=g_strdup(gettext(list[0]->u.str));     
    386386               
    387         } if (!strncmp(function,"new ",4)) {
     387        } else if (!strncmp(function,"new ",4)) {
    388388                enum attr_type attr_type=attr_from_name(function+4);
    389389                if (attr_type != attr_none) {
    390390                        struct object_func *func=object_func_lookup(attr_type);