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

This commit is contained in:
Andrey Volk committed 2021-03-17 19:38:10 +03:00
1 parent f348ab9d38
commit 3134c9aa57
1 file changed
+1 -1
@@ -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 */