Mercurial > pidgin
comparison libpurple/log.c @ 30413: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 | e3864e37e94e |
children | 717794d55760 |
comparison
equal
deleted
inserted
replaced
30412:41906308232b | 30413:7c871249318b |
---|---|
1679 char *index_tmp; | 1679 char *index_tmp; |
1680 char buf[BUF_LONG]; | 1680 char buf[BUF_LONG]; |
1681 struct tm tm; | 1681 struct tm tm; |
1682 char month[4]; | 1682 char month[4]; |
1683 struct old_logger_data *data = NULL; | 1683 struct old_logger_data *data = NULL; |
1684 char *newlog; | |
1685 int logfound = 0; | 1684 int logfound = 0; |
1686 int lastoff = 0; | 1685 int lastoff = 0; |
1687 int newlen; | 1686 int newlen; |
1688 time_t lasttime = 0; | 1687 time_t lasttime = 0; |
1689 | 1688 |
1781 g_free(pathstr); | 1780 g_free(pathstr); |
1782 } | 1781 } |
1783 } | 1782 } |
1784 | 1783 |
1785 while (fgets(buf, BUF_LONG, file)) { | 1784 while (fgets(buf, BUF_LONG, file)) { |
1786 if ((newlog = strstr(buf, "---- New C"))) { | 1785 if (strstr(buf, "---- New C") != NULL) { |
1787 int length; | 1786 int length; |
1788 int offset; | 1787 int offset; |
1789 char convostart[32]; | 1788 char convostart[32]; |
1790 char *temp = strchr(buf, '@'); | 1789 char *temp = strchr(buf, '@'); |
1791 | 1790 |