Commit 8effaf4f authored by Mike Fleetwood's avatar Mike Fleetwood Committed by Curtis Gedak

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.
parent f5e870d6
Pipeline #64264 passed with stages
in 19 minutes and 48 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment