From 28412b4c61183eb1b33adeee5dbc8e9cefc92d9f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jul 2013 19:14:24 +0000 Subject: varioius minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@5517 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/webview_services.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/WebView/src/webview_services.cpp') 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)) { -- cgit v1.2.3