mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:8.1.1046: the "secure" variable is used inconsistently
Problem:    the "secure" variable is used inconsistently. (Justin M. Keyes)
Solution:   Set it to one instead of incrementing.
82b033eff8
			
			
This commit is contained in:
		 Jan Edmund Lazo
					Jan Edmund Lazo
				
			
				
					committed by
					
						 James McCoy
						James McCoy
					
				
			
			
				
	
			
			
			 James McCoy
						James McCoy
					
				
			
						parent
						
							9dca0b27df
						
					
				
				
					commit
					ad8bba10c4
				
			| @@ -4928,7 +4928,7 @@ chk_modeline ( | ||||
|       save_SID = current_SID; | ||||
|       current_SID = SID_MODELINE; | ||||
|       // Make sure no risky things are executed as a side effect. | ||||
|       ++secure; | ||||
|       secure = 1; | ||||
|  | ||||
|       retval = do_set(s, OPT_MODELINE | OPT_LOCAL | flags); | ||||
|  | ||||
|   | ||||
| @@ -1796,11 +1796,10 @@ do_set ( | ||||
|               // effects in secure mode.  Also when the value was | ||||
|               // set with the P_INSECURE flag and is not | ||||
|               // completely replaced. | ||||
|               if (secure | ||||
|               if ((opt_flags & OPT_MODELINE) | ||||
|                   || sandbox != 0 | ||||
|                   || (opt_flags & OPT_MODELINE) | ||||
|                   || (!value_is_replaced && (*p & P_INSECURE))) { | ||||
|                 secure++; | ||||
|                 secure = 1; | ||||
|               } | ||||
|  | ||||
|               // Handle side effects, and set the global value | ||||
|   | ||||
		Reference in New Issue
	
	Block a user