Commit 460f7026 authored by Harald Judt's avatar Harald Judt

Coverity CID 60619: Explicit null dereferenced

CID 60619 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
20. var_deref_op: Dereferencing null pointer left_button.
parent 503db566
......@@ -1080,7 +1080,7 @@ thunar_location_buttons_scroll_right (GtkWidget *button,
if (G_UNLIKELY (right_button == NULL))
/* find the last visible button on the 'left' end */
for (lp = g_list_last (buttons->list); lp != NULL; lp = lp->prev)
......@@ -1101,6 +1101,9 @@ thunar_location_buttons_scroll_right (GtkWidget *button,
- (buttons->right_slider->allocation.x + buttons->right_slider->allocation.width);
if (G_UNLIKELY (left_button == NULL))
/* We have space_available extra space that's not being used. We
* need space_needed space to make the button fit. So we walk down
* from the end, removing buttons until we get all the space we
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