Commit 41e17444 authored by Abhijeetsingh Meena's avatar Abhijeetsingh Meena
Browse files

Removed tree-view mode segmentation-fault

parent 79dea950
Pipeline #12193 passed with stages
in 5 minutes and 54 seconds
......@@ -1108,11 +1108,11 @@ thunar_tree_model_device_added (ThunarDeviceMonitor *device_monitor,
{
item = THUNAR_TREE_MODEL_ITEM (node->next->data);
/* next_item points to next node data */
next_item = THUNAR_TREE_MODEL_ITEM ((node->next)->next->data);
if (item->device == NULL || next_item->device == NULL)
if (item->device == NULL)
break;
/* next_item points to next node data iff item->device != NULL */
next_item = THUNAR_TREE_MODEL_ITEM ((node->next)->next->data);
/* sort devices by ASCII order */
if (thunar_device_sort (item->device, next_item->device) > 0)
......
Supports Markdown
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