diff options
author | monsta <[email protected]> | 2015-10-01 17:38:53 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-10-01 17:41:18 +0300 |
commit | 37801d3a507a645a1bcee5e22bba94298dc20deb (patch) | |
tree | 8147b61dbef3f8f407e5ae629d29074aa0831844 | |
parent | 527a9c02376d4c3152e7f68f040e5e6e3c5887c1 (diff) | |
download | engrampa-37801d3a507a645a1bcee5e22bba94298dc20deb.tar.bz2 engrampa-37801d3a507a645a1bcee5e22bba94298dc20deb.tar.xz |
don't crash when opening archives on network drive (ftp, smb, ...)
fixes https://github.com/mate-desktop/engrampa/issues/85
-rw-r--r-- | src/fr-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index b1cc1b8..635e28e 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; |