mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 01:28:42 +00:00
Merge pull request #349 from dragos-oancea/spandsp-at-nullptr
[spandsp] scan-build: Dereference of null pointer - at_put_response()
This commit is contained in:
commit
8044d5a6e3
@ -218,6 +218,8 @@ SPAN_DECLARE(void) at_put_response(at_state_t *s, const char *t)
|
|||||||
{
|
{
|
||||||
uint8_t buf[3];
|
uint8_t buf[3];
|
||||||
|
|
||||||
|
if (!s) return;
|
||||||
|
|
||||||
buf[0] = s->p.s_regs[3];
|
buf[0] = s->p.s_regs[3];
|
||||||
buf[1] = s->p.s_regs[4];
|
buf[1] = s->p.s_regs[4];
|
||||||
buf[2] = '\0';
|
buf[2] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user