mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-05 20:55:26 +00:00
Merge "stasis_channels.c: Remove a very silly RAII_VAR()." into 13
This commit is contained in:
@@ -889,7 +889,7 @@ struct ast_json *ast_channel_snapshot_to_json(
|
|||||||
const struct ast_channel_snapshot *snapshot,
|
const struct ast_channel_snapshot *snapshot,
|
||||||
const struct stasis_message_sanitizer *sanitize)
|
const struct stasis_message_sanitizer *sanitize)
|
||||||
{
|
{
|
||||||
RAII_VAR(struct ast_json *, json_chan, NULL, ast_json_unref);
|
struct ast_json *json_chan;
|
||||||
|
|
||||||
if (snapshot == NULL
|
if (snapshot == NULL
|
||||||
|| (sanitize && sanitize->channel_snapshot
|
|| (sanitize && sanitize->channel_snapshot
|
||||||
@@ -918,7 +918,7 @@ struct ast_json *ast_channel_snapshot_to_json(
|
|||||||
"creationtime", ast_json_timeval(snapshot->creationtime, NULL),
|
"creationtime", ast_json_timeval(snapshot->creationtime, NULL),
|
||||||
"language", snapshot->language);
|
"language", snapshot->language);
|
||||||
|
|
||||||
return ast_json_ref(json_chan);
|
return json_chan;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ast_channel_snapshot_cep_equal(
|
int ast_channel_snapshot_cep_equal(
|
||||||
|
Reference in New Issue
Block a user