[pulseaudio-commits] src/modules
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Fri Jul 6 02:48:38 PDT 2012
src/modules/module-card-restore.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit cec6b153b7803ccc5bab812638a01dce0def312a
Author: Tanu Kaskinen <tanuk at iki.fi>
Date: Sat Jun 30 13:00:25 2012 +0300
card-restore: Handle reading NULL profile name from the database.
It's assumed in a couple of places that entry_read()
initializes entry->profile to a non-NULL string. This patch
makes those assumptions hold.
Tested-by: Mikel Astiz <mikel.astiz.oss at gmail.com>
diff --git a/src/modules/module-card-restore.c b/src/modules/module-card-restore.c
index 9a7d732..7d101c5 100644
--- a/src/modules/module-card-restore.c
+++ b/src/modules/module-card-restore.c
@@ -223,6 +223,9 @@ static struct entry* entry_read(struct userdata *u, const char *name) {
goto fail;
}
+ if (!profile)
+ profile = "";
+
e->profile = pa_xstrdup(profile);
if (e->version >= 2) {
More information about the pulseaudio-commits
mailing list