Strange behavior of glib



Hi,

Following code doesn't work. _name will be destroyed after the second line.
Is this a bug in glib???

    g_message("%s", _name);
    if (_name) name = g_strdown(g_strdup(_name));
    g_message("%s", _name);

Greetings, Martin



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