Fix:core:Replaced " with \' so it is now possible to specify
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 7 Apr 2010 12:33:17 +0000 (12:33 +0000)
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 7 Apr 2010 12:33:17 +0000 (12:33 +0000)
string arguments for functions in navit.xml

git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3137 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/command.c

index 7767f0a..fe3fbbd 100644 (file)
@@ -309,10 +309,10 @@ eval_value(struct context *ctx, struct result *res) {
                ctx->expr=op;
                return;
        }
-       if (op[0] == '"') {
+       if (op[0] == '\'') {
                do {
                        op++;
-               } while (op[0] != '"');
+               } while (op[0] != '\'');
                res->attr.type=attr_type_string_begin;
                len=op-ctx->expr-1;
                res->attr.u.str=g_malloc(len+1);