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:
commit
c87549ee64
|
@ -1762,7 +1762,7 @@ issize_t msg_unquoted_e(char *b, isize_t bsiz, char const *s)
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (e + n <= bsiz)
|
if (b && (e + n <= bsiz))
|
||||||
memcpy(b + e, s, n);
|
memcpy(b + e, s, n);
|
||||||
e += n;
|
e += n;
|
||||||
s += n;
|
s += n;
|
||||||
|
|
Loading…
Reference in New Issue