Initialise local POD 'launched' variable in show_help()

'launched' local POD (Plain Old Data) variable was left uninitialised,
but was set in both the try and catch clauses.  Best practice is to
initialise when defined, so do that instead.  Cosmetic change.
This commit is contained in:
Mike Fleetwood 2019-02-28 11:02:10 +00:00 committed by Curtis Gedak
parent f5e870d6c4
commit 8effaf4f22

View file

@ -1795,7 +1795,7 @@ void Win_GParted::show_help(const Glib::ustring & filename /* E.g., "gparted" */
context->set_timestamp(gtk_get_current_event_time());
bool launched;
bool launched = false;
Glib::ustring error2_msg;
try
{
@ -1804,7 +1804,6 @@ void Win_GParted::show_help(const Glib::ustring & filename /* E.g., "gparted" */
catch (Glib::Error& e)
{
error2_msg = e.what();
launched = false;
}
if (!launched)