Changeset 7b67a3 for molecuilder/src/helpers.cpp
- Timestamp:
- Aug 18, 2008, 8:35:11 AM (17 years ago)
- Children:
- e6971b
- Parents:
- d24e8f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/helpers.cpp
rd24e8f0 r7b67a3 73 73 void *buffer = NULL; 74 74 if (OldPointer == NULL) 75 cout << Verbose(0) << "ReAlloc impossible - old is NULL: " << output << endl; 76 buffer = (void *)realloc(OldPointer, size); // alloc 75 //cout << Verbose(0) << "ReAlloc impossible - old is NULL: " << output << endl; 76 buffer = (void *)malloc(size); // malloc 77 else 78 buffer = (void *)realloc(OldPointer, size); // realloc 77 79 if (buffer == NULL) 78 80 cout << Verbose(0) << "ReAlloc failed - new is NULL: " << output << endl;
Note:
See TracChangeset
for help on using the changeset viewer.