Fixed uninitialised variable confusion.
authorCarl Hetherington <carl@carlh.net>
Tue, 6 Oct 2009 12:46:50 +0000 (12:46 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 6 Oct 2009 12:46:50 +0000 (12:46 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5740 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui.cc

index f86defaaf40bf6cd174c686af90dbca26f5cc9c1..5faa64b536d821273035ab065fdea9ff75c4f11a 100644 (file)
@@ -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);
 }