mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix uninitialized memory warning
It's kinda bogus, but since we add it to the Vector, we might as well initialize all of it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									2d7b02726e
								
							
						
					
					
						commit
						79c68367c6
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -665,6 +665,7 @@ int DivePlannerPointsModel::addStop(int milimeters, int seconds, gasmix *gas_in,
 | 
				
			||||||
	point.gasmix = gas;
 | 
						point.gasmix = gas;
 | 
				
			||||||
	point.po2 = ccpoint;
 | 
						point.po2 = ccpoint;
 | 
				
			||||||
	point.entered = entered;
 | 
						point.entered = entered;
 | 
				
			||||||
 | 
						point.next = NULL;
 | 
				
			||||||
	divepoints.append(point);
 | 
						divepoints.append(point);
 | 
				
			||||||
	std::sort(divepoints.begin(), divepoints.end(), divePointsLessThan);
 | 
						std::sort(divepoints.begin(), divepoints.end(), divePointsLessThan);
 | 
				
			||||||
	endInsertRows();
 | 
						endInsertRows();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue