Fix a crash with the cap plugin.

PR:             176851
Submitted by:   Ivan Klymenko <fidaj@ukr.net>
This commit is contained in:
Joe Marcus Clarke 2013-03-24 20:39:21 +00:00
parent 80b5857dd6
commit fdfeee3f1b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315159
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- pidgin/plugins/cap/cap.c.orig 2013-03-24 20:34:29.882262000 +0000
+++ pidgin/plugins/cap/cap.c 2013-03-24 20:34:39.576121000 +0000
@@ -43,7 +43,7 @@ static double generate_prediction_for(Pu
int threshold = purple_prefs_get_int("/plugins/gtk/cap/threshold");
int min_minute = (current_minute - threshold) % 1440;
int max_minute = (current_minute + threshold) % 1440;
- char *sql, sta_id = NULL;
+ char *sql, *sta_id = NULL;
sqlite3_stmt *stmt = NULL;
const char *tail = NULL;
int rc;

View file

@ -7,7 +7,7 @@
#
PORTNAME= pidgin
PORTREVISION= 0
PORTREVISION= 1
MAINTAINER= marcus@FreeBSD.org
COMMENT= Pidgin multi-protocol messaging client (GTK+ UI)