Revision a519eb13 src/template/Template.cc

View differences:

src/template/Template.cc
430 430
    istringstream iss(sval);
431 431

  
432 432
    iss >> value;
433

  
434
    if ( iss.fail() )
435
    {
436
        value = 0;
437
        return false;
438
    }
439

  
433 440
    return true;
434 441
}
435 442

  
......
453 460
    istringstream iss(sval);
454 461

  
455 462
    iss >> value;
463

  
464
    if ( iss.fail() )
465
    {
466
        value = 0;
467
        return false;
468
    }
469

  
456 470
    return true;
457 471
}
458 472

  

Also available in: Unified diff