diff options
author | João Paulo Rechi Vita <joao.vita@gmail.com> | 2008-08-13 14:52:26 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-11 01:12:04 +0300 |
commit | 0396a6052903b8ceec71c3159fa1a84eb6d3aa96 (patch) | |
tree | 1bdfed006c157f10e8260c4c3f3ae3270da91648 /src | |
parent | f992296b9763ceef1f2f013a89b98fe3e68366d5 (diff) |
Copy arguments values instead of just getting a pointer for them
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/module-bt-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/module-bt-device.c b/src/modules/module-bt-device.c index da2fa337..ab50f24c 100644 --- a/src/modules/module-bt-device.c +++ b/src/modules/module-bt-device.c @@ -728,15 +728,15 @@ int pa__init(pa_module* m) { pa_log_error("failed to parse module arguments"); goto fail; } - if (!(u->name = pa_modargs_get_value(ma, "name", DEFAULT_SINK_NAME))) { + if (!(u->name = pa_xstrdup(pa_modargs_get_value(ma, "name", DEFAULT_SINK_NAME)))) { pa_log_error("failed to get device address from module arguments"); goto fail; } - if (!(u->addr = pa_modargs_get_value(ma, "addr", NULL))) { + if (!(u->addr = pa_xstrdup(pa_modargs_get_value(ma, "addr", NULL)))) { pa_log_error("failed to get device address from module arguments"); goto fail; } - if (!(u->profile = pa_modargs_get_value(ma, "profile", NULL))) { + if (!(u->profile = pa_xstrdup(pa_modargs_get_value(ma, "profile", NULL)))) { pa_log_error("failed to get profile from module arguments"); goto fail; } |