summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DbEditorPP')
-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];