Commit 815c02d5 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Avoid crash on NULL vfs_uri (#320020)

2007-01-11  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-directory-async.c (read_dot_hidden_file):
	Avoid crash on NULL vfs_uri (#320020)


svn path=/trunk/; revision=12692
parent 053c6a93
2007-01-11 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c (read_dot_hidden_file):
Avoid crash on NULL vfs_uri (#320020)
2007-01-11 Alexander Larsson <alexl@redhat.com> 2007-01-11 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file-operations.c:
......
...@@ -1996,7 +1996,8 @@ read_dot_hidden_file (NautilusDirectory *directory) ...@@ -1996,7 +1996,8 @@ read_dot_hidden_file (NautilusDirectory *directory)
* Need to figure out if we should do this async or sync to extend * Need to figure out if we should do this async or sync to extend
* it to all types of uris. * it to all types of uris.
*/ */
if (eel_strcasecmp (directory->details->vfs_uri->method_string, "file") != 0) { if (directory->details->vfs_uri == NULL ||
(eel_strcasecmp (directory->details->vfs_uri->method_string, "file") != 0)) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment