g_list_insert_sorted bug



Hi,

I'm running (I think gtk1.0.4), and there seems to be a bug in 
g_list_insert_sorted. If you call it on an empty list, it will pass null as
the second argument to the compare_function. This seems like a silly thing -
why not just use a normal insert?

I haven't had a chance to take a look at the code yet.

Ian

-- 
Ian McKellar           imckellar@harvestroad.com.au
Web Author / Programmer      Phone: +61 8 9389 6200
Harvest Road Communications    Fax: +61 8 9389 6201
PGPkey: finger ian@harvestroad.com.au  ICQ: 5628269

Tell me do you really know your brother man
Cause a heart speaks louder than a colour can
And why would you even shake a man's hand
If you're not going to help him stand
                            -- Ben Harper (Jah Work)

PGP signature



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