Skip to content

Commit

Permalink
Bug Fix #426: geeqie -r file:FILE crashes if FILE does not exist
Browse files Browse the repository at this point in the history
If the file does not exist, default to the home directory
  • Loading branch information
Colin Clark committed Aug 24, 2016
1 parent 8d9290d commit ba79fd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ static void gr_file_load(const gchar *text, GIOChannel *channel, gpointer data)
else
{
log_printf("remote sent filename that does not exist:\"%s\"\n", filename);
layout_set_path(NULL, homedir());
}

g_free(filename);
Expand All @@ -532,6 +533,7 @@ static void gr_config_load(const gchar *text, GIOChannel *channel, gpointer data
else
{
log_printf("remote sent filename that does not exist:\"%s\"\n", filename);
layout_set_path(NULL, homedir());
}

g_free(filename);
Expand Down

0 comments on commit ba79fd4

Please sign in to comment.