[Xfce4-commits] [apps/ristretto] 01/02: Fix NULL pointer dereference
noreply at xfce.org
noreply at xfce.org
Sun Oct 2 19:38:10 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/ristretto.
commit 102ba17a3a4443f595e06eb89b6a9f5010f804f2
Author: Igor <f2404 at yandex.ru>
Date: Sun Oct 2 20:23:56 2016 +0300
Fix NULL pointer dereference
---
src/icon_bar.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/icon_bar.c b/src/icon_bar.c
index e131241..29bc027 100644
--- a/src/icon_bar.c
+++ b/src/icon_bar.c
@@ -863,7 +863,8 @@ rstto_icon_bar_size_allocate (
/* If auto-center is true, center the selected item */
if (icon_bar->priv->auto_center == TRUE)
{
- value = icon_bar->priv->active_item->index * icon_bar->priv->item_width - ((page_size-icon_bar->priv->item_width)/2);
+ if (icon_bar->priv->active_item)
+ value = icon_bar->priv->active_item->index * icon_bar->priv->item_width - ((page_size-icon_bar->priv->item_width)/2);
if (value > (gtk_adjustment_get_upper (icon_bar->priv->hadjustment) - page_size))
value = (gtk_adjustment_get_upper (icon_bar->priv->hadjustment) - page_size);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list