diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-17 13:37:02 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-17 13:37:02 +0000 |
commit | 1b738108deb1ec217115e38dde3ebd2210870213 (patch) | |
tree | ed6d0d8a03ffe4a41504f591a7484c10612e4922 /plugins/NewsAggregator/Src | |
parent | bcfe53b305e7348e126e7756b94c61fff16f6f67 (diff) |
fixed Homepage filling
git-svn-id: http://svn.miranda-ng.org/main/trunk@5398 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src')
-rw-r--r-- | plugins/NewsAggregator/Src/Utils.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index 74e801c198..258ec6a031 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -170,6 +170,7 @@ VOID GetNewsData(TCHAR *tszUrl, char **szData, HANDLE hContact, HWND hwndDlg) //запросить ввести логин и пароль и снова попытаться скачать
}
}
+
mir_free(szUrl);
mir_free(nlhr.headers);
}
@@ -719,8 +720,11 @@ VOID CheckCurrentFeed(HANDLE hContact) mir_free(string);
continue;
}
- if (!lstrcmpi(xi.getName(child), _T("link"))) {
- db_set_ts(hContact, MODULE, "Homepage", xi.getText(child));
+ if (!lstrcmpi(xi.getName(child), _T("link")) && xi.getText(child)) {
+ TCHAR *string = mir_tstrdup(xi.getText(child));
+ ClearText(string);
+ db_set_ts(hContact, MODULE, "Homepage", string);
+ mir_free(string);
continue;
}
if (!lstrcmpi(xi.getName(child), _T("description")) && xi.getText(child)) {
|