diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-28 19:14:24 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-28 19:14:24 +0000 |
commit | 28412b4c61183eb1b33adeee5dbc8e9cefc92d9f (patch) | |
tree | 4becbf91e50b6b5fca0b600c26b2dc2a72a279c1 /plugins/WebView/src/webview_services.cpp | |
parent | 2bf7e3ba50b1bf547c726523cf842e9263d5db18 (diff) |
varioius minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5517 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView/src/webview_services.cpp')
-rw-r--r-- | plugins/WebView/src/webview_services.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/WebView/src/webview_services.cpp b/plugins/WebView/src/webview_services.cpp index 1992092f8c..274b539352 100644 --- a/plugins/WebView/src/webview_services.cpp +++ b/plugins/WebView/src/webview_services.cpp @@ -358,10 +358,9 @@ INT_PTR AddToList(WPARAM wParam, LPARAM lParam) db_unset(hContact, "CList", "NotOnList");
db_unset(hContact, "CList", "Hidden");
}
- db_free(&dbv);
}
+ db_free(&dbv);
}
- db_free(&dbv);
}
if (psr->nick == NULL) {
@@ -404,7 +403,7 @@ INT_PTR AddToList(WPARAM wParam, LPARAM lParam) }
TCHAR *Nend = _tcschr(Newnick, '.');
- *Nend = '\0';
+ if (Nend) *Nend = '\0';
for (HANDLE hContact2 = db_find_first(MODULENAME); hContact2 != NULL; hContact2 = db_find_next(hContact2, MODULENAME)) {
if (!db_get_ts(hContact2, MODULENAME, PRESERVE_NAME_KEY, &dbv)) {
|