Commit c2a5e052 authored by Michael Catanzaro's avatar Michael Catanzaro
Browse files

NautilusFile: fix crash in modify_link_hash_table

We crash in g_hash_table_lookup_extended if the file's symlink_name is
set but the file is not a symlink, since the hash function (g_str_hash)
does not allow NULL values but target_uri is NULL.
parent 308f4ce0
......@@ -553,7 +553,7 @@ modify_link_hash_table (NautilusFile *file,
GList **list_ptr;
/* Check if there is a symlink name. If none, we are OK. */
if (file->details->symlink_name == NULL) {
if (file->details->symlink_name == NULL || !nautilus_file_is_symbolic_link (file)) {
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