libpurple/plugins/log_reader.c

branch
release-2.x.y
changeset 36008
b94a61dfd064
parent 35992
34a67264df99
child 36011
d8df27a1ebdc
child 36026
ee9d95cb8ee6
equal deleted inserted replaced
36004:38c5d7673339 36008:b94a61dfd064
1839 c = strchr(c, '\n'); 1839 c = strchr(c, '\n');
1840 if (c) 1840 if (c)
1841 c++; 1841 c++;
1842 1842
1843 /* Find the last '(' character. */ 1843 /* Find the last '(' character. */
1844 if ((tmp = strchr(c, '\n')) != NULL) { 1844 if (!c) {
1845 /* do nothing */
1846 } else if ((tmp = strchr(c, '\n')) != NULL) {
1845 while (*tmp && *tmp != '(') --tmp; 1847 while (*tmp && *tmp != '(') --tmp;
1846 c = tmp; 1848 c = tmp;
1847 } else { 1849 } else {
1848 while (*c) 1850 while (*c)
1849 c++; 1851 c++;

mercurial