From: joergs <joergs@users.sourceforge.net>
Date: Thu, 7 Jun 2001 14:46:25 +0000 (+0000)
Subject: Missing make_path() added for re_filterfile.
X-Git-Tag: v_2_9_9~380
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/user-manual/diff?a=commitdiff_plain;h=79863ea468d33f234918f3d4f18dd24bc6668a87;p=privoxy.git

Missing make_path() added for re_filterfile.
---

diff --git a/loadcfg.c b/loadcfg.c
index d92dfa19..a2858b82 100644
--- a/loadcfg.c
+++ b/loadcfg.c
@@ -1,4 +1,5 @@
-const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.12 2001/06/05 20:04:09 jongfoster Exp $";
+/* vim:ts=3: */
+const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.13 2001/06/05 22:33:54 jongfoster Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/loadcfg.c,v $
@@ -35,6 +36,11 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.12 2001/06/05 20:04:09 jongfoster
  *
  * Revisions   :
  *    $Log: loadcfg.c,v $
+ *    Revision 1.13  2001/06/05 22:33:54  jongfoster
+ *
+ *    Fixed minor memory leak.
+ *    Also now uses make_path to prepend the pathnames.
+ *
  *    Revision 1.12  2001/06/05 20:04:09  jongfoster
  *    Now uses _snprintf() in place of snprintf() under Win32.
  *
@@ -573,7 +579,7 @@ struct configuration_spec * load_config(void)
 #ifdef PCRS
          case hash_re_filterfile :
             freez((char *)config->re_filterfile);
-            config->re_filterfile = strdup(arg);
+            config->re_filterfile = make_path(config->confdir, arg);
             continue;
 #endif /* def PCRS */