Fix:core:Initialize cursor_pnt to prevent uninitialized jump in cursor_draw (valgrind)
authorrphlx <rphlx@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 25 Jun 2008 07:35:20 +0000 (07:35 +0000)
committerrphlx <rphlx@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 25 Jun 2008 07:35:20 +0000 (07:35 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1166 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/cursor.c

index 516021c..9332970 100644 (file)
@@ -167,6 +167,8 @@ cursor_new(struct graphics *gra, struct color *c, struct color *c2, int animate)
        }
        if (animate)
                this->animate_timer=g_timeout_add(250, (GSourceFunc)cursor_animate, (gpointer *)this);  
+       this->cursor_pnt.x = 0;
+       this->cursor_pnt.y = 0;
        dbg(2,"ret=%p\n", this);
        return this;
 }