Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/bosh.c @ 30846:7c871249318b
Fix some "Dead nested assignment"s and then kill off some useless
variables related to them.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 14 Aug 2010 05:17:38 +0000 |
parents | 22afdd5a9290 |
children | b7e2cddaac7a |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/bosh.c Sat Aug 14 03:55:19 2010 +0000 +++ b/libpurple/protocols/jabber/bosh.c Sat Aug 14 05:17:38 2010 +0000 @@ -711,11 +711,10 @@ /* Make sure Content-Length is in headers, not body */ if (content_length && (!end_of_headers || content_length < end_of_headers)) { const char *sep; - const char *eol; int len; if ((sep = strstr(content_length, ": ")) == NULL || - (eol = strstr(sep, "\r\n")) == NULL) + strstr(sep, "\r\n") == NULL) /* * The packet ends in the middle of the Content-Length line. * We'll try again later when we have more.