mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-20 00:02:12 +00:00
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):
This commit is contained in:
parent
72a3e3718f
commit
82910256d7
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue