]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_callcenter] Fix use of uninitialized res variable in cc_agent_update()
authorAndrey Volk <andywolk@gmail.com>
Tue, 26 Jan 2021 17:24:38 +0000 (20:24 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Mar 2021 16:38:10 +0000 (19:38 +0300)
src/mod/applications/mod_callcenter/mod_callcenter.c

index 58816ea0ac3d973e61ad38bf542a69659d3960fc..cba6dc84f4d83eb649974e169a41760fca4e2728 100644 (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 */