On Wednesday 06 February 2008 22:12:44 Hannu Savolainen wrote:

> The strdup() calls are required because showenum() returns a pointer to
> a static buffer. Subsequent calls wipe out the earlier returned values
> unless they are copied somewhere else.
>

I knew that, but I thought g_list_append copied the data, so the original 
buffer isn't needed. Apparently, it just adds the pointer..

Yours,
        Yair K.
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to