]> git.alsa-project.org Git - alsa-lib.git/commitdiff
seq: shuffle calloc arguments in snd_seq_hw_open (gcc warning)
authorJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 08:42:35 +0000 (09:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 08:42:35 +0000 (09:42 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/seq/seq_hw.c

index 5e9b8953d15c34f20d336f1f8a5a474a973cd158..fe9d9bc7a05ab4f60e2f7d21acb0cc4befb9c672 100644 (file)
@@ -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);