summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Dropbox/src/dropbox_transfers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp
index 7f7bf2b1e7..6278f2e5fb 100644
--- a/plugins/Dropbox/src/dropbox_transfers.cpp
+++ b/plugins/Dropbox/src/dropbox_transfers.cpp
@@ -84,7 +84,7 @@ void CDropbox::CreateDownloadUrl(const char *path, char *url)
JSONNode error = root.at("error");
if (error.isnull()) {
- JSONNode link = root.at("link");
+ JSONNode link = root.at("url");
mir_strcpy(url, link.as_string().c_str());
return;
}
@@ -99,7 +99,7 @@ void CDropbox::CreateDownloadUrl(const char *path, char *url)
root = HandleJsonResponse(response);
JSONNode links = root.at("links").as_array();
- JSONNode link = links[0u].at("url");
+ const JSONNode &link = (*links.begin()).at("url");
mir_strcpy(url, link.as_string().c_str());
}