summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r--json-glib/json-gobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index ae98b2b..9401ab9 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -216,7 +216,7 @@ json_gobject_new (GType gtype,
goto next_member;
if (!(pspec->flags & G_PARAM_CONSTRUCT_ONLY) ||
- !(pspec->flags & G_PARAM_CONSTRUCT_ONLY))
+ !(pspec->flags & G_PARAM_CONSTRUCT))
goto next_member;
if (!(pspec->flags & G_PARAM_WRITABLE))