Prevent a warning: 'file_type_enum' may be used uninitialized in this function.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 8 Feb 2008 14:04:10 +0000 (14:04 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 8 Feb 2008 14:04:10 +0000 (14:04 +0000)
git-svn-id: http://svn.voria.com/code@1627 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/app.cpp

index 979939d..26153f8 100644 (file)
@@ -1752,7 +1752,7 @@ App::dialog_save_file(const std::string &title, std::string &filename, std::stri
     dialog->add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
     dialog->add_button(Gtk::Stock::SAVE,   Gtk::RESPONSE_ACCEPT);
 
-       Widget_Enum *file_type_enum;
+       Widget_Enum *file_type_enum = 0;
        if (preference == ANIMATION_DIR_PREFERENCE)
        {
                file_type_enum = manage(new Widget_Enum());