From 23031c6d7053159764690b35bb440d6260295f81 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 30 Jan 2015 20:33:16 +0000 Subject: no need to check malloc() result git-svn-id: http://svn.miranda-ng.org/main/trunk@11958 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/exportimport.cpp | 4 +--- 1 file changed, 1 insertion(+), 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]; -- cgit v1.2.3