fix #104 (continued): if after assert value in stringlist_add
authorKrista Grothoff <krista@pep-project.org>
Tue, 12 Jul 2016 14:26:50 +0200
changeset 845d4bb3516e01c
parent 844 8e7266b5a89c
child 846 c36be90ddd39
child 847 967c385ea856
fix #104 (continued): if after assert value in stringlist_add
src/stringlist.c
     1.1 --- a/src/stringlist.c	Tue Jul 12 14:06:12 2016 +0200
     1.2 +++ b/src/stringlist.c	Tue Jul 12 14:26:50 2016 +0200
     1.3 @@ -54,6 +54,8 @@
     1.4      )
     1.5  {  
     1.6      assert(value);
     1.7 +    if (value == NULL)
     1.8 +        return NULL;
     1.9  
    1.10      // empty list (no nodes)
    1.11      if (stringlist == NULL)