Fix a useless compiler warning
This commit is contained in:
		
							parent
							
								
									3d855284ec
								
							
						
					
					
						commit
						f22283ae89
					
				| @ -45,7 +45,7 @@ xstrtol (const char *s, long *out) | ||||
| static bool | ||||
| set_brightness (int fd, long diff, struct error **e) | ||||
| { | ||||
| 	struct vcp_feature_readout readout; | ||||
| 	struct vcp_feature_readout readout = {}; | ||||
| 	if (!vcp_get_feature (fd, VCP_BRIGHTNESS, &readout, e)) | ||||
| 		return false; | ||||
| 
 | ||||
|  | ||||
| @ -34,7 +34,7 @@ | ||||
| static bool | ||||
| set_input_source (int fd, int input, struct error **e) | ||||
| { | ||||
| 	struct vcp_feature_readout readout; | ||||
| 	struct vcp_feature_readout readout = {}; | ||||
| 	if (!vcp_get_feature (fd, VCP_INPUT_SOURCE, &readout, e)) | ||||
| 		return false; | ||||
| 	if (input < 0 || input > readout.max) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user