aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-09 21:34:24 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-09 21:34:24 +0000
commitadfa4ee6ed8f6a9972627ba858b532bf3e9731b0 (patch)
treebcab3feb719f840d690497894b4cd451e36a33c9
parent93aaba701e652ac3542996dff3df374c6b0fe3f1 (diff)
Fix silly pbx spool buglet (bug #2007)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3416 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xpbx/pbx_spool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index eb3dd2bcb..9f6455ce8 100755
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -116,7 +116,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
if (c) {
*c = '\0';
c++;
- while(*c < 33)
+ while ((*c) && (*c < 33))
c++;
#if 0
printf("'%s' is '%s' at line %d\n", buf, c, lineno);