summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-30 20:33:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-30 20:33:16 +0000
commit23031c6d7053159764690b35bb440d6260295f81 (patch)
tree3a98bcdcc93465b836cec79bbc44adf60b217cc1
parent5cf35ef0f12fc51221c6d267999a39caf8bd8a73 (diff)
no need to check malloc() result
git-svn-id: http://svn.miranda-ng.org/main/trunk@11958 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/DbEditorPP/src/exportimport.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/DbEditorPP/src/exportimport.cpp b/plugins/DbEditorPP/src/exportimport.cpp
index 60c1853d13..65f1257448 100644
--- a/plugins/DbEditorPP/src/exportimport.cpp
+++ b/plugins/DbEditorPP/src/exportimport.cpp
@@ -120,9 +120,7 @@ void exportModule(MCONTACT hContact, char *module, FILE *file)
break;
case DBVT_BLOB:
- char *data = NULL;
- if (!(data = (char*)mir_alloc(3 * (dbv.cpbVal + 1)*sizeof(char))))
- break;
+ char *data = (char*)mir_alloc(3 * (dbv.cpbVal + 1)*sizeof(char));
data[0] = '\0';
for (int j = 0; j < dbv.cpbVal; j++) {
char tmp[16];