projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1362b5
)
Don't fail when we cannot determine the lock file path
author
Lennart Poettering
<lennart@poettering.net>
Sat, 21 Jun 2008 11:55:17 +0000
(13:55 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 21 Jun 2008 11:55:17 +0000
(13:55 +0200)
src/pulse/context.c
patch
|
blob
|
history
diff --git
a/src/pulse/context.c
b/src/pulse/context.c
index
1e5fa63
..
f56cb24
100644
(file)
--- a/
src/pulse/context.c
+++ b/
src/pulse/context.c
@@
-858,7
+858,11
@@
int pa_context_connect(
if (!(flags & PA_CONTEXT_NOAUTOSPAWN) && c->conf->autospawn) {
char *lf;
- lf = pa_runtime_path(AUTOSPAWN_LOCK);
+ if (!(lf = pa_runtime_path(AUTOSPAWN_LOCK))) {
+ pa_context_fail(c, PA_ERR_ACCESS);
+ goto finish;
+ }
+
pa_assert(c->autospawn_lock_fd <= 0);
c->autospawn_lock_fd = pa_lock_lockfile(lf);
pa_xfree(lf);