[gtk+] Fixed: Don’t dereference before typechecking
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fixed: Don’t dereference before typechecking
- Date: Fri, 13 Oct 2017 08:52:05 +0000 (UTC)
commit 9dde11bdea6a330ed582edb6e1fa050916684288
Author: Daniel Boles <dboles src gnome org>
Date: Fri Oct 13 09:49:34 2017 +0100
Fixed: Don’t dereference before typechecking
gtk/gtkfixed.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c
index 62d6a2f..bdb8e95 100644
--- a/gtk/gtkfixed.c
+++ b/gtk/gtkfixed.c
@@ -230,12 +230,14 @@ gtk_fixed_put (GtkFixed *fixed,
gint x,
gint y)
{
- GtkFixedPrivate *priv = fixed->priv;
+ GtkFixedPrivate *priv;
GtkFixedChild *child_info;
g_return_if_fail (GTK_IS_FIXED (fixed));
g_return_if_fail (GTK_IS_WIDGET (widget));
+ priv = fixed->priv;
+
child_info = g_new (GtkFixedChild, 1);
child_info->widget = widget;
child_info->x = x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]