mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Prevent using an uninitialized value
This could otherwise lead to crashes if you start a plan with a dive selected that has no cylinders. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									9762b72b7d
								
							
						
					
					
						commit
						5de89e036d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -598,7 +598,7 @@ int DivePlannerPointsModel::lastEnteredPoint() | |||
| 
 | ||||
| int DivePlannerPointsModel::addStop(int milimeters, int seconds, int cylinderid_in, int ccpoint, bool entered) | ||||
| { | ||||
| 	int cylinderid; | ||||
| 	int cylinderid = 0; | ||||
| 	bool usePrevious = false; | ||||
| 	if (cylinderid_in) | ||||
| 		cylinderid = cylinderid_in; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue