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
commit c87549ee64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;