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;