From: Olle Johansson Date: Thu, 30 Mar 2006 00:30:49 +0000 (+0000) Subject: Formatting fix. X-Git-Tag: 1.4.0-beta1~2246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d1f9b747e13de42c413e68997a68b21e59eb420;p=thirdparty%2Fasterisk.git Formatting fix. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16304 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e776bab668..c16817dfa8 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)