Skip to content

Commit

Permalink
Merge pull request #592 from FreeRDP/preexec
Browse files Browse the repository at this point in the history
Exception when precommad in NULL. Reference #591
  • Loading branch information
antenore committed Jun 24, 2015
2 parents a630d77 + 8fcda66 commit 336f12d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions remmina/src/remmina_preexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ GtkDialog* remmina_preexec_new(RemminaFile* remminafile)
GError *error = NULL;
char **argv;
char const *cmd = NULL;
char const *precmd = NULL;
GPid child_pid;

cmd = g_shell_quote(remmina_file_get_string(remminafile, "precommand"));
if (cmd)
precmd = remmina_file_get_string(remminafile, "precommand");
if (precmd)
{
cmd = g_shell_quote(remmina_file_get_string(remminafile, "precommand"));
pcspinner = g_new(PCon_Spinner, 1);
builder = remmina_public_gtk_builder_new_from_file("remmina_spinner.glade");
pcspinner->dialog = GTK_DIALOG(gtk_builder_get_object(builder, "DialogSpinner"));
Expand Down

0 comments on commit 336f12d

Please sign in to comment.