[mod_callcenter] Fix use of uninitialized res variable in cc_agent_update()

This commit is contained in:
Andrey Volk 2021-01-26 20:24:38 +03:00
parent f348ab9d38
commit 3134c9aa57

View File

@ -998,7 +998,7 @@ cc_status_t cc_agent_update(const char *key, const char *value, const char *agen
{
cc_status_t result = CC_STATUS_SUCCESS;
char *sql;
char res[256];
char res[256] = "";
switch_event_t *event;
/* Check to see if agent already exist */