From 0c4b06e7c2825298442305af36c0d88d25a423bf Mon Sep 17 00:00:00 2001 From: martin-s Date: Fri, 30 Sep 2011 12:53:31 +0000 Subject: [PATCH] Fix:Core:Move declarations to the begin git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4816 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/navit.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/navit/navit/navit.c b/navit/navit/navit.c index af920ec..64dffc8 100644 --- a/navit/navit/navit.c +++ b/navit/navit/navit.c @@ -1554,23 +1554,22 @@ navit_former_destinations_active(struct navit *this_) } struct map* read_former_destinations_from_file(){ - struct attr type; + struct attr type, data, flags, *attrs[4]; + char *destination_file = bookmarks_get_destination_file(FALSE); + struct map *m; + type.type=attr_type; type.u.str="textfile"; - struct attr data; data.type=attr_data; - char *destination_file = bookmarks_get_destination_file(FALSE); data.u.str=destination_file; - struct attr flags; flags.type=attr_flags; flags.u.num=1; - struct attr *attrs[4]; attrs[0]=&type; attrs[1]=&data; attrs[2]=&flags; attrs[3]=NULL; - struct map* m=map_new(NULL, attrs); + m=map_new(NULL, attrs); g_free(destination_file); return m; } -- 2.7.4