From 5833943e79a5398117d17313c76acd53ab843d57 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 30 Jun 2003 17:03:38 +0000 Subject: Fix a potential NULL pointer dereference. Submitted by: maintainer --- editors/conglomerate/Makefile | 1 + editors/conglomerate/files/patch-src-plugin-website.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 editors/conglomerate/files/patch-src-plugin-website.c (limited to 'editors') diff --git a/editors/conglomerate/Makefile b/editors/conglomerate/Makefile index 407af43126a2..5ec1f81653fd 100644 --- a/editors/conglomerate/Makefile +++ b/editors/conglomerate/Makefile @@ -6,6 +6,7 @@ PORTNAME= conglomerate PORTVERSION= 0.5.4 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/editors/conglomerate/files/patch-src-plugin-website.c b/editors/conglomerate/files/patch-src-plugin-website.c new file mode 100644 index 000000000000..6d207f4dfb92 --- /dev/null +++ b/editors/conglomerate/files/patch-src-plugin-website.c @@ -0,0 +1,17 @@ +--- src/plugin-website.c.orig Sun May 25 11:59:33 2003 ++++ src/plugin-website.c Mon Jun 30 16:28:24 2003 +@@ -390,12 +390,12 @@ + { + const CongXMLChar* dtd_public_id = cong_document_get_dtd_public_identifier(doc); + +- g_message(dtd_public_id); +- + if (NULL==dtd_public_id) { + return FALSE; + } + ++ g_message(dtd_public_id); ++ + /* Only relevant for Doctype with public ID = "" */ + if (0==strcmp(dtd_public_id,"-//Norman Walsh//DTD Website Layout V2.4.0//EN")) { + return TRUE; -- cgit v1.2.3