Revision 5f28a7bf src/vm/History.cc

View differences:

src/vm/History.cc
380 380
    // -------------------------------------------------------------------------
381 381
    ObjectXML::get_nodes("/HISTORY/VM", content);
382 382

  
383
    if (content.empty())
383
    if (!content.empty())
384 384
    {
385
        return -1;
386
    }
385
        ObjectXML vm_info_xml(content[0]);
387 386

  
388
    ObjectXML vm_info_xml(content[0]);
387
        ostringstream oss;
389 388

  
390
    ostringstream oss;
389
        oss << vm_info_xml;
391 390

  
392
    oss << vm_info_xml;
391
        vm_info = oss.str();
393 392

  
394
    vm_info = oss.str();
393
        ObjectXML::free_nodes(content);
395 394

  
396
    ObjectXML::free_nodes(content);
397

  
398
    content.clear();
395
        content.clear();
396
    }
399 397

  
400 398
    non_persistent_data();
401 399

  

Also available in: Unified diff