service is non optional

This commit is contained in:
Love Hornquist Astrand
2009-11-22 12:57:35 -08:00
parent 5813b0a4dd
commit c228d7487b

View File

@@ -352,10 +352,7 @@ common_path_init(const char *service,
return ENOMEM; return ENOMEM;
s->fd = -1; s->fd = -1;
if (service[0] == '\0') asprintf(&s->path, "/var/run/.heim_%s-%s", service, file);
asprintf(&s->path, "/var/run/.heim_%s", file);
else
s->path = strdup(service);
*ctx = s; *ctx = s;
@@ -404,7 +401,7 @@ static int
door_init(const char *service, door_init(const char *service,
void **ctx) void **ctx)
{ {
ret = common_path_init(context, service, name, "door", ctx); ret = common_path_init(context, service, "door", ctx);
if (ret) if (ret)
return ret; return ret;
ret = connect_door(*ctx); ret = connect_door(*ctx);