aboutsummaryrefslogtreecommitdiffstats
path: root/finance/libofx
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2009-11-08 08:06:57 +0800
committerarved <arved@FreeBSD.org>2009-11-08 08:06:57 +0800
commit19c1614c12ad51657bf8961c19e4f93b1bf4b29e (patch)
tree2152229922605a9dae25e17d5e861b78b1829527 /finance/libofx
parent846070b36102cbacffd3d360abc31a109e322134 (diff)
downloadfreebsd-ports-gnome-19c1614c12ad51657bf8961c19e4f93b1bf4b29e.tar.gz
freebsd-ports-gnome-19c1614c12ad51657bf8961c19e4f93b1bf4b29e.tar.zst
freebsd-ports-gnome-19c1614c12ad51657bf8961c19e4f93b1bf4b29e.zip
Fix an initialization bug
Bump PORTREVISION PR: 138408 Submitted by: takawata
Diffstat (limited to 'finance/libofx')
-rw-r--r--finance/libofx/Makefile2
-rw-r--r--finance/libofx/files/patch-lib_ofx_utilities.cpp33
2 files changed, 21 insertions, 14 deletions
diff --git a/finance/libofx/Makefile b/finance/libofx/Makefile
index 1404bdad6336..1dd9f6a06184 100644
--- a/finance/libofx/Makefile
+++ b/finance/libofx/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libofx
PORTVERSION= 0.9.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= finance
MASTER_SITES= SF
diff --git a/finance/libofx/files/patch-lib_ofx_utilities.cpp b/finance/libofx/files/patch-lib_ofx_utilities.cpp
index 0c2a139536b1..2523393f6044 100644
--- a/finance/libofx/files/patch-lib_ofx_utilities.cpp
+++ b/finance/libofx/files/patch-lib_ofx_utilities.cpp
@@ -1,13 +1,20 @@
-*** lib/ofx_utilities.old Sun Apr 13 12:39:29 2003
---- lib/ofx_utilities.cpp Sun Apr 13 12:11:04 2003
-***************
-*** 16,21 ****
---- 16,22 ----
- * *
- ***************************************************************************/
- #include <config.h>
-+ #include <locale.h>
- #include <iostream>
- #include "ParserEventGeneratorKit.h"
- #include "SGMLApplication.h"
-
+--- lib/ofx_utilities.cpp.orig 2007-10-27 14:15:58.000000000 +0200
++++ lib/ofx_utilities.cpp 2009-11-08 01:02:47.000000000 +0100
+@@ -16,6 +16,7 @@
+ * *
+ ***************************************************************************/
+ #include <config.h>
++#include <locale.h>
+ #include <iostream>
+ #include <assert.h>
+
+@@ -113,6 +114,9 @@
+ char time_zone_specified = false;
+
+ time_t temptime;
++
++ bzero(&time, sizeof(time));
++
+ std::time(&temptime);
+ local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime)));
+