summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4c25ec2af..b891eef7c 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -19738,13 +19738,13 @@ static void cleanup_stale_contexts(char *new, char *old)
char *oldcontext, *newcontext, *stalecontext, *stringp, newlist[AST_MAX_CONTEXT];
while ((oldcontext = strsep(&old, "&"))) {
- stalecontext = '\0';
+ stalecontext = NULL;
ast_copy_string(newlist, new, sizeof(newlist));
stringp = newlist;
while ((newcontext = strsep(&stringp, "&"))) {
if (!strcmp(newcontext, oldcontext)) {
/* This is not the context you're looking for */
- stalecontext = '\0';
+ stalecontext = NULL;
break;
} else if (strcmp(newcontext, oldcontext)) {
stalecontext = oldcontext;