mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Merged revisions 160207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r160207 | tilghman | 2008-12-01 18:25:16 -0600 (Mon, 01 Dec 2008) | 3 lines Ensure that Asterisk builds with --enable-dev-mode, even on the latest gcc and glibc. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1769,7 +1769,8 @@ static int __ast_cli_unregister(struct ast_cli_entry *e, struct ast_cli_entry *e
|
||||
e->_full_cmd = NULL;
|
||||
if (e->handler) {
|
||||
/* this is a new-style entry. Reset fields and free memory. */
|
||||
memset((char **)(e->cmda), '\0', sizeof(e->cmda));
|
||||
char *cmda = (char *) e->cmda;
|
||||
memset(cmda, '\0', sizeof(e->cmda));
|
||||
ast_free(e->command);
|
||||
e->command = NULL;
|
||||
e->usage = NULL;
|
||||
|
Reference in New Issue
Block a user