summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-10-01 17:38:53 +0300
committermonsta <[email protected]>2015-10-01 17:38:53 +0300
commite8d91511d4fd35eb583238d3c755747ec535dc2e (patch)
tree9931f55b7756a80db6c5c2dffc7e674284383cab /src
parentb24cdcc3a79545864a62c2bb52bc6dc1862c8e83 (diff)
downloadengrampa-e8d91511d4fd35eb583238d3c755747ec535dc2e.tar.bz2
engrampa-e8d91511d4fd35eb583238d3c755747ec535dc2e.tar.xz
don't crash when opening archives on network drive (ftp, smb, ...)
fixes https://github.com/mate-desktop/engrampa/issues/85
Diffstat (limited to 'src')
-rw-r--r--src/fr-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 968972b..ed6f76a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2683,7 +2683,7 @@ fr_window_progress_cb (FrArchive *archive,
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (window->priv->pd_progress_bar), fraction);
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (window->priv->progress_bar), fraction);
- if ((archive != NULL) && (archive->command->n_files > 0)) {
+ if ((archive != NULL) && (archive->command != NULL) && (archive->command->n_files > 0)) {
char *message = NULL;
int remaining_files;