projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee4c121
)
fix a seg fault in this application if no context paramater is given
author
Russell Bryant
<russell@russellbryant.com>
Sun, 23 Jul 2006 05:20:59 +0000
(
05:20
+0000)
committer
Russell Bryant
<russell@russellbryant.com>
Sun, 23 Jul 2006 05:20:59 +0000
(
05:20
+0000)
(issue #7571)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38118
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_directed_pickup.c
patch
|
blob
|
history
diff --git
a/apps/app_directed_pickup.c
b/apps/app_directed_pickup.c
index
55001ab
..
c79bad2
100644
(file)
--- a/
apps/app_directed_pickup.c
+++ b/
apps/app_directed_pickup.c
@@
-83,7
+83,7
@@
static int pickup_exec(struct ast_channel *chan, void *data)
*context++ = '\0';
/* If the context is the pickup mark, iterate through all channels finding the right origin one */
- if (!strcmp(context, PICKUPMARK)) {
+ if (context && !strcmp(context, PICKUPMARK)) {
while ((origin = ast_channel_walk_locked(origin))) {
if (origin) {
tmp2 = pbx_builtin_getvar_helper(origin, PICKUPMARK);