On Tue, Aug 16, 2011 at 11:37 AM, Dmitry Bely <dmitry.b...@gmail.com> wrote: (...) > while (*s != NULL) { > list = wrp_ml_cons(caml_copy_string(*s), list); /* bug! */ > }
Ah, s increment is missing. The loop should be written as for (; *s != NULL; s++) { list = wrp_ml_cons(caml_copy_string(*s), list); /* bug! */ } - Dmitry Bely -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs