[telepathy-sofiasip/master] Properly fixed a quick patch

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Mon Nov 23 05:49:16 PST 2009


---
 tpsip/util.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tpsip/util.c b/tpsip/util.c
index bf74dbf..8db8114 100644
--- a/tpsip/util.c
+++ b/tpsip/util.c
@@ -61,17 +61,16 @@ tpsip_string_append_quoted (GString *buf, const gchar *text)
   while (*p)
     {
       const gchar *q;
-      gchar ch;
 
       /* Get the following text span to append verbatim */
       for (q = p; !escape_table[*q]; ++q)
         { /* do nothing */ }
       g_string_append_len (buf, p, q - p);
 
-      if (ch == '\0')
+      if (*q == '\0')
         break;
 
-      quoted_pair[1] = ch;
+      quoted_pair[1] = *q;
       g_string_append_len (buf, quoted_pair, 2);
 
       p = q + 1;
-- 
1.5.6.5



More information about the telepathy-commits mailing list