Added caveat for explicit next NULL in new_stringlist
authorKrista Grothoff <krista@pep-project.org>
Mon, 11 Jul 2016 09:07:31 +0200
changeset 82651b1d46df1ae
parent 825 c5b5500a978d
child 827 37f1b63ecf97
Added caveat for explicit next NULL in new_stringlist
src/stringlist.h
     1.1 --- a/src/stringlist.h	Mon Jul 11 02:53:09 2016 +0200
     1.2 +++ b/src/stringlist.h	Mon Jul 11 09:07:31 2016 +0200
     1.3 @@ -24,6 +24,7 @@
     1.4  //  caveat:
     1.5  //      the value is being copied before being added to the list
     1.6  //      the original string is still being owned by the caller
     1.7 +//      the "next" pointer of the returned object is explicitly set to NULL
     1.8  
     1.9  DYNAMIC_API stringlist_t *new_stringlist(const char *value);
    1.10