Fix silly pbx spool buglet (bug #2007)
authorMark Spencer <markster@digium.com>
Fri, 9 Jul 2004 21:34:24 +0000 (21:34 +0000)
committerMark Spencer <markster@digium.com>
Fri, 9 Jul 2004 21:34:24 +0000 (21:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3416 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_spool.c

index eb3dd2b..9f6455c 100755 (executable)
@@ -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);