From 9fcdda7f8ed1f49ce9985e0f2cbc798b30df79f9 Mon Sep 17 00:00:00 2001 From: Jed Date: Wed, 15 Jun 2016 10:45:02 -0400 Subject: [PATCH] rpcgen: don't install an empty set of properties Signed-off-by: Jed --- rpcgen/templates/template_obj_imp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcgen/templates/template_obj_imp.c b/rpcgen/templates/template_obj_imp.c index 1ad32b3..63de832 100644 --- a/rpcgen/templates/template_obj_imp.c +++ b/rpcgen/templates/template_obj_imp.c @@ -48,7 +48,8 @@ static void @object@_object_class_init (@GLIB_CLASS@ *klass) @init_properties@ gc->set_property = handle_set_property; gc->get_property = handle_get_property; - g_object_class_install_properties(gc, N_PROPERTIES, obj_properties); + if (N_PROPERTIES > 1) + g_object_class_install_properties(gc, N_PROPERTIES, obj_properties); } @GLIB_OBJ@ *@object@_create_glib_obj()