/* Returns: the #GValue structure that has been passed in  */
GValue* g_value_reset(GValue *value)
/* Returns: the #GValue structure that has been passed in  */
GValue* g_value_reset(GValue *value)
{
  GTypeValueTable *value_table;
  GType g_type;
  g_return_val_if_fail (G_IS_VALUE (value), NULL);
  g_type = G_VALUE_TYPE (value);
  value_table = g_type_value_table_peek (g_type);
  if (value_table->value_free)
    value_table->value_free (value);
  value_meminit (value, g_type);
  value_table->value_init (value);
  return value;
}