Fix uninitialized variable in fun_regreplace
authorAri Johnson <ari@theari.com>
Mon, 11 Apr 2011 03:12:25 +0000 (23:12 -0400)
committerAri Johnson <ari@theari.com>
Mon, 11 Apr 2011 03:12:25 +0000 (23:12 -0400)
src/funlist.c

index 455501b34312b336fb12c92ad922e205f99a4f0f..6101f46bfbd28eda5279db97c7cd7d8df060659b 100644 (file)
@@ -3141,6 +3141,7 @@ FUNCTION(fun_regreplace)
   int *old_re_offsets;
   char *old_re_from;
 
+  old_re_code = global_eval_context.re_code;
   old_re_subpatterns = global_eval_context.re_subpatterns;
   old_re_offsets = global_eval_context.re_offsets;
   old_re_from = global_eval_context.re_from;