mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	seq: shuffle calloc arguments in snd_seq_hw_open (gcc warning)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									1b9a073e6a
								
							
						
					
					
						commit
						fb285b366f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -579,7 +579,7 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode) | |||
| 		} | ||||
| 	} | ||||
| 	if (streams & SND_SEQ_OPEN_INPUT) { | ||||
| 		seq->ibuf = (char *) calloc(sizeof(snd_seq_ump_event_t), seq->ibufsize = SND_SEQ_IBUF_SIZE); | ||||
| 		seq->ibuf = (char *) calloc(seq->ibufsize = SND_SEQ_IBUF_SIZE, sizeof(snd_seq_ump_event_t)); | ||||
| 		if (!seq->ibuf) { | ||||
| 			free(seq->obuf); | ||||
| 			free(hw); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jaroslav Kysela
						Jaroslav Kysela