aboutsummaryrefslogtreecommitdiff
path: root/www/tidy/files
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-08-12 02:55:03 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-08-12 02:55:03 +0000
commit7fbf829f4e7a3ea76ea60c9a2642efd489849d94 (patch)
tree1fef60b3164a16c8696451fa9bc358886d5d5cff /www/tidy/files
parentb5f4a336a7fc16027d019745257d40ae533d0ca2 (diff)
downloadports-7fbf829f4e7a3ea76ea60c9a2642efd489849d94.tar.gz
ports-7fbf829f4e7a3ea76ea60c9a2642efd489849d94.zip
Avoid dumping core when $HOME is not set.
Reference: <7mn0t271m8.wl@black.imgsrc.co.jp>
Notes
Notes: svn path=/head/; revision=64395
Diffstat (limited to 'www/tidy/files')
-rw-r--r--www/tidy/files/patch-ac18
1 files changed, 14 insertions, 4 deletions
diff --git a/www/tidy/files/patch-ac b/www/tidy/files/patch-ac
index 957ffed0d981..073e660a9fec 100644
--- a/www/tidy/files/patch-ac
+++ b/www/tidy/files/patch-ac
@@ -1,5 +1,5 @@
---- config.c.orig Fri Aug 4 19:21:05 2000
-+++ config.c Mon Nov 19 14:42:14 2001
+--- config.c.orig Sat Aug 5 01:21:05 2000
++++ config.c Mon Jul 8 23:07:17 2002
@@ -94,6 +94,7 @@
Bool TidyMark = yes; /* add meta element indicating tidied doc */
Bool Emacs = no; /* if true format error output for GNU Emacs */
@@ -16,7 +16,17 @@
/* this must be the final entry */
{0, 0, 0}
-@@ -423,7 +425,10 @@
+@@ -392,7 +394,8 @@
+ home_dir = passwd->pw_dir;
+ }
+
+- if (p = realloc(expanded_filename, strlen(filename)+strlen(home_dir)+1))
++ if (home_dir != NULL &&
++ (p = realloc(expanded_filename, strlen(filename)+strlen(home_dir)+1)))
+ {
+ strcat(strcpy(expanded_filename = p, home_dir), filename);
+ return(expanded_filename);
+@@ -423,7 +426,10 @@
/* open the file and parse its contents */
if ((fin = fopen(fname, "r")) == null)
@@ -28,7 +38,7 @@
else
{
config_text = null;
-@@ -533,6 +538,12 @@
+@@ -533,6 +539,12 @@
{
QuoteAmpersand = yes;
HideEndTags = no;