Skip to content

Commit

Permalink
Merge pull request #23 from jean-edouard/n_pspecs
Browse files Browse the repository at this point in the history
rpcgen: don't install an empty set of properties
  • Loading branch information
rossphilipson authored Jun 21, 2016
2 parents d51a5fa + 9fcdda7 commit df4ff09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpcgen/templates/template_obj_imp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit df4ff09

Please sign in to comment.