Changeset 27374


Ignore:
Timestamp:
2011-07-03T06:19:59+02:00 (5 years ago)
Author:
nbd
Message:

swconfig: avoid setting "NOVAL" attributes if "0" was provided as a value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/swconfig/src/swlib.c

    r24932 r27374  
    398398                break; 
    399399        case SWITCH_TYPE_NOVAL: 
     400                if (str && !strcmp(str, "0")) 
     401                        return 0; 
     402 
    400403                break; 
    401404        default: 
Note: See TracChangeset for help on using the changeset viewer.