mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Add missing braces.
(closes issue #11886) Reported by: sergee Patches: func_realtime_fix-r101392.diff uploaded by sergee (license 138) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -68,10 +68,11 @@ static int function_realtime_read(struct ast_channel *chan, const char *cmd, cha
|
||||
|
||||
head = ast_load_realtime_all(args.family, args.fieldmatch, args.value, NULL);
|
||||
|
||||
if (!head)
|
||||
if (!head) {
|
||||
if (chan)
|
||||
ast_autoservice_stop(chan);
|
||||
return -1;
|
||||
}
|
||||
|
||||
resultslen = 0;
|
||||
n = 0;
|
||||
|
Reference in New Issue
Block a user