aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/pbx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index c1046fe39..2782b57c6 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1645,6 +1645,8 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
nextexp = nextthing;
pos = nextexp - whereweare;
break;
+ default:
+ pos = 1;
}
}
@@ -1800,8 +1802,7 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
count -= length;
cp2 += length;
}
- } else
- break;
+ }
}
}