From: Takashi Iwai Date: Wed, 9 Feb 2005 16:59:10 +0000 (+0000) Subject: Fix the parse of filenames with spaces X-Git-Tag: v1.0.9rc1~28 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=361b8128f199b864be82d4072e86215f90ff6c66;p=alsa-lib.git Fix the parse of filenames with spaces Fixed the parse of filenames with spaces. --- diff --git a/src/conf.c b/src/conf.c index 41918fbd..4ef2a6ae 100644 --- a/src/conf.c +++ b/src/conf.c @@ -2792,12 +2792,10 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t char *name; if ((err = snd_config_get_ascii(n, &name)) < 0) goto _err; - if ((err = snd_user_file(name, &fi[idx].name)) < 0) { - SNDERR("\"%s\" is not a word", name); + if ((err = snd_user_file(name, &fi[idx].name)) < 0) + fi[idx].name = name; + else free(name); - goto _err; - } - free(name); idx++; hit = 1; }