diff options
author | Gene Z. Ragan <gzr@eazel.com> | 2001-02-03 00:20:40 +0000 |
---|---|---|
committer | Gene Ragan <gzr@src.gnome.org> | 2001-02-03 00:20:40 +0000 |
commit | 82910256d76ed0e5bda4d25d82c1eea6c214fbac (patch) | |
tree | 0f132351d970882b96033067aff8ad7c32b8df73 | |
parent | 72a3e3718f78e8455c10325beeea177b28d35351 (diff) | |
download | nautilus-82910256d76ed0e5bda4d25d82c1eea6c214fbac.tar.gz |
Fixed a small bug where I was assuming a value would be valid when it
2001-02-02 Gene Z. Ragan <gzr@eazel.com>
Fixed a small bug where I was assuming a value would be valid
when it could be NULL. Now I check for NULL.
* src/nautilus-application.c: (volume_unmounted_callback):
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/nautilus-application.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2001-02-02 Gene Z. Ragan <gzr@eazel.com> + + Fixed a small bug where I was assuming a value would be valid + when it could be NULL. Now I check for NULL. + + * src/nautilus-application.c: (volume_unmounted_callback): + 2001-02-02 Brett Neely <brett@eazel.com> reviewed by: Eric Fischer <eric@eazel.com> diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 2edc68970..3d4fa3b72 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -704,7 +704,7 @@ volume_unmounted_callback (NautilusVolumeMonitor *monitor, NautilusVolume *volum /* Construct a list of windows to be closed */ for (index = windows; index != NULL; index = index->next) { window = (NautilusWindow *)index->data; - if (window != NULL) { + if (window != NULL && window->details->viewed_file != NULL) { text_uri = nautilus_file_get_uri (window->details->viewed_file); uri = gnome_vfs_uri_new (text_uri); g_free (text_uri); |