diff options
author | Carl Hetherington <carl@carlh.net> | 2009-10-06 12:46:50 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-10-06 12:46:50 +0000 |
commit | 658cb435dfe378f9c313837d70c6076436666476 (patch) | |
tree | 42d5a37a27684c31c658fbee3c17adb1a8a8ae66 /gtk2_ardour/ardour_ui.cc | |
parent | cd528dd5eaa013fc685ce7e0c086159f0c27aafe (diff) |
Fixed uninitialised variable confusion.
git-svn-id: svn://localhost/ardour2/branches/3.0@5740 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index f86defaaf4..5faa64b536 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3001,7 +3001,6 @@ ARDOUR_UI::write_buffer_stats () { struct tm tm; char buf[64]; - char* path; char* tmplt = (char*)calloc(strlen("ardourXXXXXX"), sizeof(char)); int fd = mkstemp (tmplt); @@ -3012,7 +3011,7 @@ ARDOUR_UI::write_buffer_stats () FILE* fout = fdopen (fd, "w"); if (!fout) { - cerr << string_compose (X_("cannot open file %1 for ardour buffer stats"), path) << endl; + cerr << string_compose (X_("cannot open file %1 for ardour buffer stats"), tmplt) << endl; return; } @@ -3028,8 +3027,7 @@ ARDOUR_UI::write_buffer_stats () fclose (fout); close (fd); - cerr << "Ardour buffering statistics can be found in: " << path << endl; - free (path); + cerr << "Ardour buffering statistics can be found in: " << tmplt << endl; free (tmplt); } |