# HG changeset patch # User Mark Doliner # Date 1057534404 0 # Node ID 72403c3c84e1b3777578c28df7c3330230e4fadc # Parent 3b8a5846b483dc74e7760e5baaf16d148a0f1844 [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 diff -r 3b8a5846b483 -r 72403c3c84e1 plugins/timestamp.c --- 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);