mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-17 08:56:45 -05:00
Fix the parse of filenames with spaces
Fixed the parse of filenames with spaces.
This commit is contained in:
parent
823a925c26
commit
361b8128f1
1 changed files with 3 additions and 5 deletions
|
|
@ -2792,12 +2792,10 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t
|
||||||
char *name;
|
char *name;
|
||||||
if ((err = snd_config_get_ascii(n, &name)) < 0)
|
if ((err = snd_config_get_ascii(n, &name)) < 0)
|
||||||
goto _err;
|
goto _err;
|
||||||
if ((err = snd_user_file(name, &fi[idx].name)) < 0) {
|
if ((err = snd_user_file(name, &fi[idx].name)) < 0)
|
||||||
SNDERR("\"%s\" is not a word", name);
|
fi[idx].name = name;
|
||||||
|
else
|
||||||
free(name);
|
free(name);
|
||||||
goto _err;
|
|
||||||
}
|
|
||||||
free(name);
|
|
||||||
idx++;
|
idx++;
|
||||||
hit = 1;
|
hit = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue