On 08/27/2015 05:30 PM, Marc-André Lureau wrote:
Hi

On Thu, Aug 27, 2015 at 11:17 AM, Denis V. Lunev <d...@openvz.org> wrote:
why not to
__str = g_strsplit(str, delim, -1);
+    strv = g_strsplit(str, delim, -1);
+    for (i = 0; strv[i]; i++) {
+        list = g_list_prepend(list, strv[i]);
       }
+    g_free(strv);
g_free(__str);

This will remove all burden from callers.
You will be able to use const char * as argument too.

Sorry, I don't understand, could you propose a different patch?

you are right, me wrong :) I have mis-read the code.
This one is perfect.

Reviewed-by: Denis V. Lunev <d...@openvz.org>

Reply via email to