Mercurial > pidgin
changeset 6050:72403c3c84e1
[gaim-migrate @ 6500]
Fixes a "timestamp plugin sigsegv." That's what happens when you don't
initialize your variables. coughseanorchriscough
Fixes http://sourceforge.net/tracker/index.php?func=detail&aid=765567&group_id=235&atid=100235
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 06 Jul 2003 23:33:24 +0000 |
parents | 3b8a5846b483 |
children | a170c50b2a48 |
files | plugins/timestamp.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/timestamp.c Sun Jul 06 23:03:25 2003 +0000 +++ b/plugins/timestamp.c Sun Jul 06 23:33:24 2003 +0000 @@ -14,7 +14,7 @@ #define TIMESTAMP_PLUGIN_ID "gtk-timestamp" -//Set the default to 5 minutes. +/* Set the default to 5 minutes. */ static int timestamp = 5 * 60 * 1000; static GSList *timestamp_timeouts; @@ -25,7 +25,7 @@ char *buf; char mdate[6]; time_t tim = time(NULL); - + if (!g_list_find(gaim_get_conversations(), c)) return FALSE; @@ -105,6 +105,7 @@ GList *cnvs; GaimConversation *c; + timestamp_timeouts = NULL; for (cnvs = gaim_get_conversations(); cnvs != NULL; cnvs = cnvs->next) { c = cnvs->data; timestamp_new_convo(c->name);