Karsten Hopp fe266f
To: vim_dev@googlegroups.com
Karsten Hopp fe266f
Subject: Patch 7.4.701
Karsten Hopp fe266f
Fcc: outbox
Karsten Hopp fe266f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fe266f
Mime-Version: 1.0
Karsten Hopp fe266f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp fe266f
Content-Transfer-Encoding: 8bit
Karsten Hopp fe266f
------------
Karsten Hopp fe266f
Karsten Hopp fe266f
Patch 7.4.701
Karsten Hopp fe266f
Problem:    Compiler warning for using uninitialized variable. (Yasuhiro
Karsten Hopp fe266f
            Matsumoto)
Karsten Hopp fe266f
Solution:   Initialize it.
Karsten Hopp fe266f
Files:      src/hardcopy.c
Karsten Hopp fe266f
Karsten Hopp fe266f
Karsten Hopp fe266f
*** ../vim-7.4.700/src/hardcopy.c	2015-04-13 14:45:10.696707013 +0200
Karsten Hopp fe266f
--- src/hardcopy.c	2015-04-15 14:24:23.382239763 +0200
Karsten Hopp fe266f
***************
Karsten Hopp fe266f
*** 2513,2519 ****
Karsten Hopp fe266f
      props = enc_canon_props(p_encoding);
Karsten Hopp fe266f
      if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
Karsten Hopp fe266f
      {
Karsten Hopp fe266f
! 	int cmap_first;
Karsten Hopp fe266f
  
Karsten Hopp fe266f
  	p_mbenc_first = NULL;
Karsten Hopp fe266f
  	for (cmap = 0; cmap < (int)NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
Karsten Hopp fe266f
--- 2513,2519 ----
Karsten Hopp fe266f
      props = enc_canon_props(p_encoding);
Karsten Hopp fe266f
      if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
Karsten Hopp fe266f
      {
Karsten Hopp fe266f
! 	int cmap_first = 0;
Karsten Hopp fe266f
  
Karsten Hopp fe266f
  	p_mbenc_first = NULL;
Karsten Hopp fe266f
  	for (cmap = 0; cmap < (int)NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
Karsten Hopp fe266f
*** ../vim-7.4.700/src/version.c	2015-04-15 12:43:37.997444487 +0200
Karsten Hopp fe266f
--- src/version.c	2015-04-15 14:25:49.025337117 +0200
Karsten Hopp fe266f
***************
Karsten Hopp fe266f
*** 743,744 ****
Karsten Hopp fe266f
--- 743,746 ----
Karsten Hopp fe266f
  {   /* Add new patch number below this line */
Karsten Hopp fe266f
+ /**/
Karsten Hopp fe266f
+     701,
Karsten Hopp fe266f
  /**/
Karsten Hopp fe266f
Karsten Hopp fe266f
-- 
Karsten Hopp fe266f
SOLDIER: What? A swallow carrying a coconut?
Karsten Hopp fe266f
ARTHUR:  It could grip it by the husk ...
Karsten Hopp fe266f
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp fe266f
Karsten Hopp fe266f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fe266f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fe266f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp fe266f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///