tags 451263 patch 
thanks

The patch below fixes the segfault. So far no problems elsewhere.
/Jörgen

--- subst.c.orig        2009-01-02 17:36:01.000000000 +0100
+++ subst.c     2009-01-02 17:39:18.000000000 +0100
@@ -2537,6 +2537,9 @@
   char *ret;
   DECLARE_MBSTATE;
 
+  if (string == 0)
+    return 0;
+
   /* Don't need string length for ADVANCE_CHAR unless multibyte chars
possible. */
   slen = (MB_CUR_MAX > 1) ? strlen (string) : 0;
   i = saw_quote = 0;





--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to