diff options
author | horwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-01-05 12:32:24 +0000 |
---|---|---|
committer | horwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-01-05 12:32:24 +0000 |
commit | 231761a7b5ff0fa758d2b584e34620809dba0a71 (patch) | |
tree | bea590578493ac3d7597d723aa04d45f2363326e /navit/command.c | |
parent | 6b52f1fa8a80e1d7a12bcc3f1327ff0f2f5e20d1 (diff) | |
download | navit-svn-231761a7b5ff0fa758d2b584e34620809dba0a71.tar.gz |
Fix:Core:Prevent segfault(fixes #529)|Thanks Pini for the patch.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2896 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/command.c')
-rw-r--r-- | navit/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/command.c b/navit/command.c index 4d830820..6872522f 100644 --- a/navit/command.c +++ b/navit/command.c @@ -384,7 +384,7 @@ command_call_function(struct context *ctx, struct result *res) 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); |