From: dooglus Date: Fri, 8 Feb 2008 14:04:10 +0000 (+0000) Subject: Prevent a warning: 'file_type_enum' may be used uninitialized in this function. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6a74ec923f5100406c64b5003842cbb16527c6df;p=synfig.git Prevent a warning: 'file_type_enum' may be used uninitialized in this function. git-svn-id: http://svn.voria.com/code@1627 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 979939d..26153f8 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -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());