summaryrefslogtreecommitdiff
path: root/funcs/func_realtime.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-01-31 15:36:11 +0000
committerJoshua Colp <jcolp@digium.com>2008-01-31 15:36:11 +0000
commit7492c04a23ed767440b3193e0fdc9ddd85e4dfc2 (patch)
tree073ee590228bb8c657b0c886cfd5a7a781983306 /funcs/func_realtime.c
parent2dd50b7656f5fd4dece708fd7551565b60786b38 (diff)
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
Diffstat (limited to 'funcs/func_realtime.c')
-rw-r--r--funcs/func_realtime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/funcs/func_realtime.c b/funcs/func_realtime.c
index 7b269d91c..a901ff764 100644
--- a/funcs/func_realtime.c
+++ b/funcs/func_realtime.c
@@ -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;