summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-10-30 16:36:29 +0000
committerMark Michelson <mmichelson@digium.com>2007-10-30 16:36:29 +0000
commite5f87bbac3c3c629dace940ffcc8f8aeea368f15 (patch)
tree8df8411d900be6774df49c1cc374dbb3dc773696 /main
parenta4e38b7cd562fbeea37e74346c01db55dcaac621 (diff)
Jumped the gun a bit in the RaiseException app. It would always return -1
since it checked for the existence of something that will never exist. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 5fb02016b..ac1c781e9 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1301,7 +1301,7 @@ int pbx_builtin_raise_exception(struct ast_channel *chan, void *vtype)
if (!ds)
return -1;
exception = ast_calloc(1, sizeof(struct pbx_exception));
- if (!ds->data) {
+ if (!exception) {
ast_channel_datastore_free(ds);
return -1;
}