mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	pulsecore: Set errno before calling read
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/759>
This commit is contained in:
		
							parent
							
								
									89ce6321bd
								
							
						
					
					
						commit
						96bd4e57b5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -407,6 +407,7 @@ finish:
 | 
				
			||||||
 * by the caller. */
 | 
					 * by the caller. */
 | 
				
			||||||
ssize_t pa_read(int fd, void *buf, size_t count, int *type) {
 | 
					ssize_t pa_read(int fd, void *buf, size_t count, int *type) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    errno = 0;
 | 
				
			||||||
#ifdef OS_IS_WIN32
 | 
					#ifdef OS_IS_WIN32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!type || *type == 0) {
 | 
					    if (!type || *type == 0) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue