summaryrefslogtreecommitdiffstats
path: root/src/modules/module-card-restore.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marc-andre.lureau@nokia.com>2009-02-19 04:49:58 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-19 04:49:58 +0100
commit01f81d697346d3cb052d11137913aaa59a854c0b (patch)
treeafb0ee386758554cd37be7471897c92692dc96ce /src/modules/module-card-restore.c
parentee0b5f71861f3ebad0c24f8c27000210fd986e54 (diff)
card-restore: it's not useful to check an array, let's check the length
Diffstat (limited to 'src/modules/module-card-restore.c')
-rw-r--r--src/modules/module-card-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-card-restore.c b/src/modules/module-card-restore.c
index 909c0957..c7696058 100644
--- a/src/modules/module-card-restore.c
+++ b/src/modules/module-card-restore.c
@@ -191,7 +191,7 @@ static pa_hook_result_t card_new_hook_callback(pa_core *c, pa_card_new_data *new
pa_assert(new_data);
- if ((e = read_entry(u, new_data->name)) && e->profile) {
+ if ((e = read_entry(u, new_data->name)) && e->profile[0]) {
if (!new_data->active_profile) {
pa_card_new_data_set_profile(new_data, e->profile);