libpurple/log.c

branch
release-2.x.y
changeset 36027
175e769076e1
parent 35995
d0bbb2dad7f3
child 36030
9a2250c4e9d1
equal deleted inserted replaced
36026:ee9d95cb8ee6 36027:175e769076e1
1714 1714
1715 if (index_fd != -1) { 1715 if (index_fd != -1) {
1716 if (st.st_mtime < log_last_modified) 1716 if (st.st_mtime < log_last_modified)
1717 { 1717 {
1718 purple_debug_warning("log", "Index \"%s\" exists, but is older than the log.\n", pathstr); 1718 purple_debug_warning("log", "Index \"%s\" exists, but is older than the log.\n", pathstr);
1719 close(index_fd);
1719 } 1720 }
1720 else 1721 else
1721 { 1722 {
1722 /* The index file exists and is at least as new as the log, so open it. */ 1723 /* The index file exists and is at least as new as the log, so open it. */
1723 if (!(index = fdopen(index_fd, "rb"))) { 1724 if (!(index = fdopen(index_fd, "rb"))) {

mercurial