aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-30 00:30:49 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-30 00:30:49 +0000
commitd53aa3d72f63a2c6b37540f8cb7090089d778612 (patch)
tree1f49d9d1e16bc822920616c46d8c0b6cea2c2ed0 /channels
parent7914bf864560268c0c61b7b88c290f5329dfd651 (diff)
Formatting fix.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16304 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e776bab66..c16817dfa 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7098,13 +7098,17 @@ static char *get_calleridname(char *input, char *output, size_t outputsize)
int bytes = 0;
int maxbytes = outputsize - 1;
- if (!end || (end == input)) return NULL;
+ if (!end || (end == input))
+ return NULL;
+
/* move away from "<" */
end--;
+
/* we found "name" */
if (tmp && tmp < end) {
end = strchr(tmp+1, '\"');
- if (!end) return NULL;
+ if (!end)
+ return NULL;
bytes = (int) (end - tmp);
/* protect the output buffer */
if (bytes > maxbytes)