aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2007-11-09 03:04:06 +0800
committerfjoe <fjoe@FreeBSD.org>2007-11-09 03:04:06 +0800
commit828ba59a6e193e4130b34cf7209ee8fa024dbf5f (patch)
tree3bd342b883ebfae0b3cf8e0c24150a23d89ef2d0
parentb1b56ecebca56b23d74d5e0dae422ccd3dd34d8f (diff)
downloadfreebsd-ports-graphics-828ba59a6e193e4130b34cf7209ee8fa024dbf5f.tar.gz
freebsd-ports-graphics-828ba59a6e193e4130b34cf7209ee8fa024dbf5f.tar.zst
freebsd-ports-graphics-828ba59a6e193e4130b34cf7209ee8fa024dbf5f.zip
Fix wild pointer free(). Similar fix exists in mainstream CVS tree.
Approved by: portmgr (pav)
-rw-r--r--devel/cvsnt/Makefile1
-rw-r--r--devel/cvsnt/files/patch-diff-diff3.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/cvsnt/Makefile b/devel/cvsnt/Makefile
index cc7dc2d6dcb..b568790597b 100644
--- a/devel/cvsnt/Makefile
+++ b/devel/cvsnt/Makefile
@@ -7,6 +7,7 @@
PORTNAME= cvsnt
PORTVERSION= 2.5.03.2704
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.cvsnt.org/archive/
diff --git a/devel/cvsnt/files/patch-diff-diff3.c b/devel/cvsnt/files/patch-diff-diff3.c
new file mode 100644
index 00000000000..87642ce4b15
--- /dev/null
+++ b/devel/cvsnt/files/patch-diff-diff3.c
@@ -0,0 +1,11 @@
+--- diff/diff3.c.orig 2007-11-06 23:59:45.000000000 +0600
++++ diff/diff3.c 2007-11-06 23:59:05.000000000 +0600
+@@ -1367,7 +1367,7 @@
+ char const **ap;
+ char *diffout;
+ char *difffn;
+- char *encoding;
++ char *encoding = NULL;
+
+ TRACE(3, "read_diff() - process arguments");
+ ap = argv;