Rationale for change in behavior of g_strsplit when passed empty string?



When g_strsplit in glib 1.2 was passed an empty string, it returned an empty vector.

When g_strsplit in glib 1.3 is passed an empty string, it returns a vector with a single empty string in it.

Is there a good reason for this change? We'll have to make some small changes to code in eel and nautilus because of the change, and I just wanted to make sure it was no accident.

    -- Darin




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