diff options
author | waker <wakeroid@gmail.com> | 2011-03-31 22:06:22 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-03-31 22:06:22 +0200 |
commit | 5c2f94c8bfa7b98b3c832d0ce11c6ecdbd474029 (patch) | |
tree | eb92ff856f530485809ee0e2e0710f56f8d0155b /plugins/sid | |
parent | 57de90e3b8958b4d5edf1bd0145f98623768caa9 (diff) |
thread-safe config access
Diffstat (limited to 'plugins/sid')
-rw-r--r-- | plugins/sid/csid.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/sid/csid.cpp b/plugins/sid/csid.cpp index dd176e05..ffdd4548 100644 --- a/plugins/sid/csid.cpp +++ b/plugins/sid/csid.cpp @@ -108,8 +108,9 @@ sldb_load() sldb_disable = 1; return; } - const char *conf_hvsc_path = deadbeef->conf_get_str ("hvsc_path", NULL); - if (!conf_hvsc_path) { + char conf_hvsc_path[1000]; + deadbeef->conf_get_str ("hvsc_path", "", conf_hvsc_path, sizeof (conf_hvsc_path)); + if (!conf_hvsc_path[0]) { sldb_disable = 1; return; } |