Coverity Report: Fix issues for error type UNINIT in Core supported modules

(issue ASTERISK-19652)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/1909/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@366048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose
2012-05-10 15:35:33 +00:00
parent 50b43947f1
commit a7650f8002
5 changed files with 16 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ AST_APP_OPTIONS(cdr_func_options, {
static int cdr_read(struct ast_channel *chan, const char *cmd, char *parse,
char *buf, size_t len)
{
char *ret;
char *ret = NULL;
struct ast_flags flags = { 0 };
struct ast_cdr *cdr;
AST_DECLARE_APP_ARGS(args,