From 1ce2e3980d8fc3426248b5f61d1597bc591914ea Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Mon, 25 Mar 2013 19:26:24 +0100 Subject: [PATCH] Fix win32 build + clear inital path --- ogl_editor/src/Editor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ogl_editor/src/Editor.c b/ogl_editor/src/Editor.c index b0477a3..bcc295b 100644 --- a/ogl_editor/src/Editor.c +++ b/ogl_editor/src/Editor.c @@ -595,6 +595,7 @@ static void biasSelection(float value) if (selectLeft == selectRight && selectTop == selectBottom) { + int idx; struct sync_track* track; struct sync_track** tracks = getTracks(); @@ -603,7 +604,7 @@ static void biasSelection(float value) track = tracks[getActiveTrack()]; - int idx = sync_find_key(track, getRowPos()); + idx = sync_find_key(track, getRowPos()); if (idx < 0) { @@ -928,6 +929,8 @@ static bool onSaveAs() text_t path[2048]; int ret; + memset(path, 0, sizeof(path)); + if (!(ret = LoadSave_saveRocketXMLDialog(path, getTrackData()))) return false;