[sofia-sip] scan-build: Null pointer passed as an argument to a 'nonnull' parameter

This commit is contained in:
Dragos Oancea 2020-01-31 15:19:08 +00:00
parent d9bec17d16
commit 0734d471d9
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;