summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_xstatus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-02-12 19:08:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-02-12 19:08:44 +0000
commit37d75985201293402712edfecb611fc14aaa1c3a (patch)
treefe3e353ce99b6462cefe1738c694ad25574b1c70 /protocols/IcqOscarJ/src/icq_xstatus.cpp
parenta6a07109358ccf64f4bd43f62ddfa421eccefec3 (diff)
good bye, ansi
git-svn-id: http://svn.miranda-ng.org/main/trunk@3580 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_xstatus.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_xstatus.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/protocols/IcqOscarJ/src/icq_xstatus.cpp b/protocols/IcqOscarJ/src/icq_xstatus.cpp
index d62a5f1f5b..c434321763 100644
--- a/protocols/IcqOscarJ/src/icq_xstatus.cpp
+++ b/protocols/IcqOscarJ/src/icq_xstatus.cpp
@@ -1016,14 +1016,12 @@ INT_PTR CIcqProto::GetXStatusEx(WPARAM wParam, LPARAM lParam)
SAFE_FREE(&wstr);
}
else {
- DBVARIANT dbv = {0};
-
- if (!getSettingString(hContact, DBSETTING_XSTATUS_NAME, &dbv) && dbv.pszVal)
+ DBVARIANT dbv;
+ if ( !getSettingString(hContact, DBSETTING_XSTATUS_NAME, &dbv) && dbv.pszVal) {
strcpy(pData->pszName, dbv.pszVal);
- else
- strcpy(pData->pszName, "");
-
- db_free(&dbv);
+ db_free(&dbv);
+ }
+ else strcpy(pData->pszName, "");
}
}
}