- Timestamp:
- Jan 11, 2022, 4:58:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/Ohana/src/opihi/cmd.basic/getargs.c
r41978 r41985 53 53 if (!argmatch) { 54 54 if (varName) { 55 // default for a boolean is FALSE 56 // default for a value is to keep an existing value 55 57 if (mode == MODE_BOOL) { 56 58 set_str_variable (varName, "0"); // NOTE: if a local variable with the same name exists, that will be used 57 } else {58 set_str_variable (varName, ""); // NOTE: if a local variable with the same name exists, that will be used59 59 } 60 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
