arecordmidi2: fix unitialization variable error in read_ump_raw()
Variable v should be initialized from the first word in the buffer. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7c894ab7ad
commit
242e00573a
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ static int read_ump_raw(FILE *file, uint32_t *buf)
|
|||
|
||||
if (fread(buf, 4, 1, file) != 1)
|
||||
return 0;
|
||||
v = be32toh(v);
|
||||
v = be32toh(*buf);
|
||||
num = snd_ump_packet_length(snd_ump_msg_hdr_type(v));
|
||||
for (i = 1; i < num; i++) {
|
||||
if (fread(buf + i, 4, 1, file) != 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue