Fix maybe-uninitialized warning in xf86NewInputDevice()
If SYSTEMD_LOGIND is not defined, systemd_logind_take_fd is defined as a macro evaluating to -1 by systemd-logind.h, leaving paused uninitialized. ../hw/xfree86/common/xf86Xinput.c: In function ‘xf86NewInputDevice’: ../hw/xfree86/common/xf86Xinput.c:919:16: warning: ‘paused’ may be used uninitialized in this function [-Wmaybe-uninitialized] ../hw/xfree86/common/xf86Xinput.c:877:10: note: ‘paused’ was declared here
This commit is contained in:
		
							parent
							
								
									7c266cafed
								
							
						
					
					
						commit
						ba59427aba
					
				|  | @ -874,7 +874,7 @@ xf86NewInputDevice(InputInfoPtr pInfo, DeviceIntPtr *pdev, BOOL enable) | ||||||
| { | { | ||||||
|     InputDriverPtr drv = NULL; |     InputDriverPtr drv = NULL; | ||||||
|     DeviceIntPtr dev = NULL; |     DeviceIntPtr dev = NULL; | ||||||
|     Bool paused; |     Bool paused = FALSE; | ||||||
|     int rval; |     int rval; | ||||||
|     char *path = NULL; |     char *path = NULL; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue