[asterisk-commits] trunk r16304 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Mar 29 17:30:51 MST 2006


Author: oej
Date: Wed Mar 29 18:30:49 2006
New Revision: 16304

URL: http://svn.digium.com/view/asterisk?rev=16304&view=rev
Log:
Formatting fix.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=16304&r1=16303&r2=16304&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Mar 29 18:30:49 2006
@@ -7098,13 +7098,17 @@
 	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)



More information about the asterisk-commits mailing list