diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-30 16:36:29 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-30 16:36:29 +0000 |
commit | cae7b14e2476189b001a1135f7c2440bead2cf3f (patch) | |
tree | 8df8411d900be6774df49c1cc374dbb3dc773696 /main | |
parent | 04f28eeb73b486652c117b4ceffa126fbb412cb9 (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: http://svn.digium.com/svn/asterisk/trunk@87573 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 2 |
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; } |