handle NULL strings
authorVolker Birk <vb@pep-project.org>
Sun, 21 Feb 2016 12:30:17 +0100
changeset 45470c7c54c8d4e
parent 453 f6a197a72f1f
child 455 154302d31d05
handle NULL strings
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Sun Feb 21 12:06:36 2016 +0100
     1.2 +++ b/src/pEpEngine.c	Sun Feb 21 12:30:17 2016 +0100
     1.3 @@ -1048,8 +1048,7 @@
     1.4  
     1.5  static char *_concat_string(char *str1, const char *str2, char delim)
     1.6  {
     1.7 -    assert(str2);
     1.8 -
     1.9 +    str2 = str2 ? str2 : "";
    1.10      size_t len1 = str1 ? strlen(str1) : 0;
    1.11      size_t len2 = strlen(str2);
    1.12      size_t len = len1 + len2 + 3;