Merge pull request #288 from dragos-oancea/sofia-msg_parser_util-nullptr

[sofia-sip] scan-build: Null pointer passed as an argument to a 'null' parameter
This commit is contained in:
Andrey Volk
2020-02-12 00:21:52 +04:00
committed by GitHub

View File

@@ -1762,7 +1762,7 @@ issize_t msg_unquoted_e(char *b, isize_t bsiz, char const *s)
s++;
}
else {
if (e + n <= bsiz)
if (b && (e + n <= bsiz))
memcpy(b + e, s, n);
e += n;
s += n;