Bug in string GValues?



Hello,

when setting a GValue to a string by using g_value_set_static_string,
the string is copied when using g_value_copy. This is the function
that's called when you copy a string:

static void
value_copy_string (const GValue *src_value,
		   GValue	*dest_value)
{
  dest_value->data[0].v_pointer = g_strdup(src_value->data[0].v_pointer);
}

Shouldn't this function honor the G_VALUE_NOCOPY_CONTENTS flag?

//andersca
andersca gnu org








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]