summaryrefslogtreecommitdiff
path: root/res/res_speech.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-07-11 17:34:30 +0000
committerJoshua Colp <jcolp@digium.com>2007-07-11 17:34:30 +0000
commit7e015109a2d551b819d21a025933a6dc4d77cf40 (patch)
treeb4f7d56dc6c4dca246072a682969e85f07d0de1f /res/res_speech.c
parent2d3f9ce25b77693dcc4c28cb7e6bd24b14593276 (diff)
Use the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_speech.c')
-rw-r--r--res/res_speech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_speech.c b/res/res_speech.c
index e848b06ca..9047ad254 100644
--- a/res/res_speech.c
+++ b/res/res_speech.c
@@ -113,7 +113,7 @@ int ast_speech_results_free(struct ast_speech_result *result)
current_result->grammar = NULL;
}
/* Move on and then free ourselves */
- current_result = current_result->next;
+ current_result = AST_LIST_NEXT(current_result, list);
ast_free(prev_result);
prev_result = NULL;
}