]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix the parse of filenames with spaces
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Feb 2005 16:59:10 +0000 (16:59 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Feb 2005 16:59:10 +0000 (16:59 +0000)
Fixed the parse of filenames with spaces.

src/conf.c

index 41918fbd9f86d3e729a1ca2dff16a0a8bb24f9e6..4ef2a6ae7d8aa40702fb6ebe29af1047326cc04c 100644 (file)
@@ -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;
                        }