Patch 8.0.1524 (after 8.0.1523)
Problem:    Compiler warnings for uninitialized variables. (Tony Mechelynck)
Solution:   Initialize variables.
Files:      src/terminal.c


*** ../vim-8.0.1523/src/terminal.c      2018-02-18 22:13:06.257057992 +0100
--- src/terminal.c      2018-02-19 21:48:32.423022006 +0100
***************
*** 3277,3285 ****
      char_u    buf1[NUMBUFLEN];
      char_u    buf2[NUMBUFLEN];
      char_u    *fname1;
!     char_u    *fname2;
      FILE      *fd1;
!     FILE      *fd2;
      char_u    *textline = NULL;
  
      /* First open the files.  If this fails bail out. */
--- 3277,3285 ----
      char_u    buf1[NUMBUFLEN];
      char_u    buf2[NUMBUFLEN];
      char_u    *fname1;
!     char_u    *fname2 = NULL;
      FILE      *fd1;
!     FILE      *fd2 = NULL;
      char_u    *textline = NULL;
  
      /* First open the files.  If this fails bail out. */
***************
*** 3460,3466 ****
  theend:
      vim_free(textline);
      fclose(fd1);
!     if (do_diff)
        fclose(fd2);
  }
  
--- 3460,3466 ----
  theend:
      vim_free(textline);
      fclose(fd1);
!     if (fd2 != NULL)
        fclose(fd2);
  }
  
*** ../vim-8.0.1523/src/version.c       2018-02-18 22:13:06.269057906 +0100
--- src/version.c       2018-02-19 21:49:53.682428316 +0100
***************
*** 773,774 ****
--- 773,776 ----
  {   /* Add new patch number below this line */
+ /**/
+     1524,
  /**/

-- 
ARTHUR: Charge!
   [They all charge with swords drawn towards the RABBIT.  A tremendous twenty
   second fight with Peckinpahish shots and borrowing heavily also on the
   Kung Fu and karate-type films ensues, in which some four KNIGHTS are
   comprehensively killed.]
ARTHUR: Run away!  Run away!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui