[gtk+/wip/baedert/gtkimageview: 131/135] builtinicon: Don't dereference possibly null pointer
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 131/135] builtinicon: Don't dereference possibly null pointer
- Date: Tue, 19 Jul 2016 12:51:52 +0000 (UTC)
commit 853af3e609f48cf96c52b1a73eeef5de963344be
Author: Timm Bäder <mail baedert org>
Date: Thu Jul 14 21:08:26 2016 +0200
builtinicon: Don't dereference possibly null pointer
gtk/gtkbuiltinicon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbuiltinicon.c b/gtk/gtkbuiltinicon.c
index feedb2c..279511a 100644
--- a/gtk/gtkbuiltinicon.c
+++ b/gtk/gtkbuiltinicon.c
@@ -121,7 +121,7 @@ gtk_builtin_icon_get_preferred_size (GtkCssGadget *gadget,
*minimum_baseline = *minimum * 0.5 + PANGO_PIXELS (priv->strikethrough);
}
- if (natural_baseline)
+ if (natural_baseline && minimum_baseline)
*natural_baseline = *minimum_baseline;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]