summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
commit41f218316dce6b1bfcfb0f2754379fa74c5138ed (patch)
tree1cd44fe63c6ebabf70d8c4b6f34be37ab8e844f7 /plugins/AVS/src/utils.cpp
parent397e25f2b71347c7c83495fe5b25496ff3b02b75 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS/src/utils.cpp')
-rw-r--r--plugins/AVS/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp
index 7aa9f205d3..ab79fc7b85 100644
--- a/plugins/AVS/src/utils.cpp
+++ b/plugins/AVS/src/utils.cpp
@@ -125,7 +125,7 @@ void MakePathRelative(HANDLE hContact, TCHAR *path)
szFinalPath[0] = '\0';
size_t result = AVS_pathToRelative(path, szFinalPath);
- if (result && lstrlen(szFinalPath) > 0) {
+ if (result && szFinalPath[0] != '\0') {
db_set_ts(hContact, "ContactPhoto", "RFile", szFinalPath);
if (!db_get_b(hContact, "ContactPhoto", "Locked", 0))
db_set_ts(hContact, "ContactPhoto", "Backup", szFinalPath);