git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@484
fefdeb5f-60dc-0310-8127-
8f9354f1896f
c->scache_idle_time = conf->scache_idle_time;
c->resample_method = conf->resample_method;
- if (pa_namereg_get(c, c->default_sink_name, PA_NAMEREG_SINK, 1) == NULL) {
+ if (c->default_sink_name &&
+ pa_namereg_get(c, c->default_sink_name, PA_NAMEREG_SINK, 1) == NULL) {
pa_log_error("%s : Fatal error. Default sink name (%s) does not exist in name register.\n", __FILE__, c->default_sink_name);
retval = 1;
} else {