Changeset eefb8e


Ignore:
Timestamp:
May 30, 2008, 1:51:53 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
724819
Parents:
bdba3c
Message:

OutputConfigForListOfFragments(): return of configuration::GetDefaultPath() is checked for NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/moleculelist.cpp

    rbdba3c reefb8e  
    203203  vector BoxDimension;
    204204  char *FragmentNumber = NULL;
     205  char *path = NULL;
    205206  int FragmentCounter = 0;
    206207  ofstream output;
     
    209210  for(int i=0;i<NumberOfMolecules;i++) {
    210211    // save default path as it is changed for each fragment
    211     strcpy(PathBackup, configuration->GetDefaultPath());
     212    path = configuration->GetDefaultPath();
     213    if (path != NULL)
     214      strcpy(PathBackup, path);
     215    else
     216      cerr << "OutputConfigForListOfFragments: NULL default path obtained from config!" << endl;
    212217
    213218    // correct periodic
Note: See TracChangeset for help on using the changeset viewer.