Skip to content
  • Clayton Craft's avatar
    config: Explicitly check for bad bit when parsing config line (MR 162) · 938e6b0c
    Clayton Craft authored
    In gcc 12, the return value for the operator>> of istringstream doesn't
    seem to indicate success or not, this may have been taking advantage of
    some undocumented or deprecated behavior... Anyways, with this change
    the bad bit is checked explicitly after expanding the line.
    
    This also simplifies the code slightly by removing the error var, which
    was not really necessary.
    
    Fixes: #143
    Replaces: !157
    938e6b0c
Loading