mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	planner.c: use implicit struct initializer
We should either use mplicit struct initializers (empty braces { }
or double braced zero {{ 0 }}) or memset the struct.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
			
			
This commit is contained in:
		
							parent
							
								
									d11ca6bd60
								
							
						
					
					
						commit
						7451790660
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -369,7 +369,7 @@ struct divedatapoint *get_nth_dp(struct diveplan *diveplan, int idx)
 | 
			
		|||
{
 | 
			
		||||
	struct divedatapoint **ldpp, *dp = diveplan->dp;
 | 
			
		||||
	int i = 0;
 | 
			
		||||
	struct gasmix air = { 0 };
 | 
			
		||||
	struct gasmix air = { };
 | 
			
		||||
	ldpp = &diveplan->dp;
 | 
			
		||||
 | 
			
		||||
	while (dp && i++ < idx) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue