mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Fix some opaquification-related compiler warnings
(closes issue ASTERISK-19419) PseudoReview - seanbright on IRC git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -689,11 +689,13 @@ static int start_monitor_exec(struct ast_channel *chan, const char *data)
|
||||
snprintf(tmp, sizeof(tmp), "%s/%s.%s", urlprefix, args.fname_base,
|
||||
((strcmp(args.format, "gsm")) ? "wav" : "gsm"));
|
||||
ast_channel_lock(chan);
|
||||
if (!ast_channel_cdr(chan) && !(chan_cdr = ast_cdr_alloc())) {
|
||||
ast_channel_unlock(chan);
|
||||
return -1;
|
||||
if (!ast_channel_cdr(chan)) {
|
||||
if (!(chan_cdr = ast_cdr_alloc())) {
|
||||
ast_channel_unlock(chan);
|
||||
return -1;
|
||||
}
|
||||
ast_channel_cdr_set(chan, chan_cdr);
|
||||
}
|
||||
ast_channel_cdr_set(chan, chan_cdr);
|
||||
ast_cdr_setuserfield(chan, tmp);
|
||||
ast_channel_unlock(chan);
|
||||
}
|
||||
|
Reference in New Issue
Block a user