Bug in string GValues?
- From: Anders Carlsson <andersca gnu org>
- To: gtk-devel-list gnome org
- Subject: Bug in string GValues?
- Date: 01 Aug 2001 20:08:36 +0200
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]