[asterisk-commits] trunk r31813 - /trunk/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Jun 3 13:34:26 MST 2006
Author: rizzo
Date: Sat Jun 3 15:34:26 2006
New Revision: 31813
URL: http://svn.digium.com/view/asterisk?rev=31813&view=rev
Log:
Replace '\"' with '"'.
The escape is unnecessary, and makes a bad example
to people reading the code.
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=31813&r1=31812&r2=31813&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sat Jun 3 15:34:26 2006
@@ -7541,7 +7541,7 @@
static char *get_calleridname(const char *input, char *output, size_t outputsize)
{
const char *end = strchr(input,'<'); /* first_bracket */
- const char *tmp = strchr(input,'\"'); /* first quote */
+ const char *tmp = strchr(input,'"'); /* first quote */
int bytes = 0;
int maxbytes = outputsize - 1;
@@ -7553,7 +7553,7 @@
/* we found "name" */
if (tmp && tmp < end) {
- end = strchr(tmp+1, '\"');
+ end = strchr(tmp+1, '"');
if (!end)
return NULL;
bytes = (int) (end - tmp);
@@ -9714,7 +9714,7 @@
continue;
/* Found. Skip keyword, take text in quotes or up to the separator. */
c += strlen(i->key);
- if (*c == '\"') {
+ if (*c == '"') {
src = ++c;
separator = "\"";
} else {
More information about the asterisk-commits
mailing list