Patch 8.2.0607
Problem:    Gcc warns for using uninitialized variable. (John Marriott)
Solution:   Set name_end also for environment variables.
Files:      src/evalvars.c


*** ../vim-8.2.0606/src/evalvars.c      2020-04-19 17:24:48.665264342 +0200
--- src/evalvars.c      2020-04-19 22:55:38.552587698 +0200
***************
*** 1428,1461 ****
            if (!error && !eap->skip
                              && callback(&lv, arg, eap, deep, cookie) == FAIL)
                error = TRUE;
!           arg = skipwhite(arg);
!           continue;
        }
! 
!       // Parse the name and find the end.
!       name_end = get_lval(arg, NULL, &lv, TRUE, eap->skip || error,
!                                                  glv_flags, FNE_CHECK_START);
!       if (lv.ll_name == NULL)
!           error = TRUE;           // error but continue parsing
!       if (name_end == NULL || (!VIM_ISWHITE(*name_end)
!                                                  && !ends_excmd(*name_end)))
        {
!           if (name_end != NULL)
            {
!               emsg_severe = TRUE;
!               emsg(_(e_trailing));
            }
-           if (!(eap->skip || error))
-               clear_lval(&lv);
-           break;
-       }
  
!       if (!error && !eap->skip
                         && callback(&lv, name_end, eap, deep, cookie) == FAIL)
!           error = TRUE;
  
!       if (!eap->skip)
!           clear_lval(&lv);
  
        arg = skipwhite(name_end);
      } while (!ends_excmd2(name_end, arg));
--- 1428,1462 ----
            if (!error && !eap->skip
                              && callback(&lv, arg, eap, deep, cookie) == FAIL)
                error = TRUE;
!           name_end = arg;
        }
!       else
        {
!           // Parse the name and find the end.
!           name_end = get_lval(arg, NULL, &lv, TRUE, eap->skip || error,
!                                                  glv_flags, FNE_CHECK_START);
!           if (lv.ll_name == NULL)
!               error = TRUE;       // error but continue parsing
!           if (name_end == NULL || (!VIM_ISWHITE(*name_end)
!                                                   && !ends_excmd(*name_end)))
            {
!               if (name_end != NULL)
!               {
!                   emsg_severe = TRUE;
!                   emsg(_(e_trailing));
!               }
!               if (!(eap->skip || error))
!                   clear_lval(&lv);
!               break;
            }
  
!           if (!error && !eap->skip
                         && callback(&lv, name_end, eap, deep, cookie) == FAIL)
!               error = TRUE;
  
!           if (!eap->skip)
!               clear_lval(&lv);
!       }
  
        arg = skipwhite(name_end);
      } while (!ends_excmd2(name_end, arg));
*** ../vim-8.2.0606/src/version.c       2020-04-19 18:31:21.715570505 +0200
--- src/version.c       2020-04-19 22:56:39.960471396 +0200
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     607,
  /**/

-- 
Engineers are always delighted to share wisdom, even in areas in which they
have no experience whatsoever.  Their logic provides them with inherent
insight into any field of expertise.  This can be a problem when dealing with
the illogical people who believe that knowledge can only be derived through
experience.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202004192059.03JKxGEM004933%40masaka.moolenaar.net.

Raspunde prin e-mail lui