summaryrefslogtreecommitdiff
path: root/src/playlist/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-09-09 18:01:01 +0200
committerMax Kellermann <max@musicpd.org>2016-09-09 18:01:01 +0200
commitdadf3d846b648594b1143ec892e4fdaf9b6e544f (patch)
tree54251869b18adae30b66c620d3d45b6ed2d96bdf /src/playlist/plugins
parent941a9284b96f5fbecee6e5dbf5f65f9b7b4fd8f5 (diff)
playlist/SoundCloud: implicit SoundCloudJsonData initialization
Diffstat (limited to 'src/playlist/plugins')
-rw-r--r--src/playlist/plugins/SoundCloudPlaylistPlugin.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/playlist/plugins/SoundCloudPlaylistPlugin.cxx b/src/playlist/plugins/SoundCloudPlaylistPlugin.cxx
index 18ece153d..d8b3bb3a1 100644
--- a/src/playlist/plugins/SoundCloudPlaylistPlugin.cxx
+++ b/src/playlist/plugins/SoundCloudPlaylistPlugin.cxx
@@ -103,10 +103,10 @@ static const char *const key_str[] = {
struct SoundCloudJsonData {
int key;
- char* stream_url;
+ char *stream_url = nullptr;
long duration;
- char* title;
- int got_url; /* nesting level of last stream_url */
+ char *title = nullptr;
+ int got_url = 0; /* nesting level of last stream_url */
std::forward_list<DetachedSong> songs;
};
@@ -326,9 +326,6 @@ soundcloud_open_uri(const char *uri, Mutex &mutex, Cond &cond)
}
SoundCloudJsonData data;
- data.got_url = 0;
- data.title = nullptr;
- data.stream_url = nullptr;
yajl_handle hand = yajl_alloc(&parse_callbacks, nullptr, &data);
int ret = soundcloud_parse_json(u, hand, mutex, cond);