mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +00:00
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++;
|
||||
}
|
||||
else {
|
||||
if (e + n <= bsiz)
|
||||
if (b && (e + n <= bsiz))
|
||||
memcpy(b + e, s, n);
|
||||
e += n;
|
||||
s += n;
|
||||
|
Loading…
x
Reference in New Issue
Block a user