mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	fix uninitialized warning
`index` might be uninitialized. Warning can be produced with gcc and `-01` flag.
This commit is contained in:
		
							parent
							
								
									e5fd858394
								
							
						
					
					
						commit
						784cf65635
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -405,7 +405,7 @@ static void realloc_crtcs(struct wlr_drm_backend *backend,
 | 
			
		|||
 | 
			
		||||
	memset(possible_crtc, 0, sizeof(possible_crtc));
 | 
			
		||||
 | 
			
		||||
	size_t index;
 | 
			
		||||
	size_t index = 0;
 | 
			
		||||
	for (size_t i = 0; i < backend->outputs->length; ++i) {
 | 
			
		||||
		struct wlr_drm_output *o = backend->outputs->items[i];
 | 
			
		||||
		if (o == output) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue