- Fix empty clause warning in config_file nsid parse.

This commit is contained in:
W.C.A. Wijngaards 2021-01-28 09:11:46 +01:00
parent 9e6f8567de
commit cb55b5906a
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,7 @@
28 January 2022: Wouter
- Annotate that we ignore the return value of if_indextoname.
- Fix to use correct type for label count in rpz routine.
- Fix empty clause warning in config_file nsid parse.
26 January 2022: George
- Merge PR #408 from fobser: Prevent a few more yacc clashes.

View file

@ -2064,8 +2064,9 @@ uint8_t* cfg_parse_nsid(const char* str, uint16_t* nsid_len)
if ((nsid = (uint8_t *)strdup(str + 6)))
*nsid_len = strlen(str + 6);
} else if (strlen(str) % 2)
} else if (strlen(str) % 2) {
; /* hex string has even number of characters */
}
else if (*str && (nsid = calloc(1, strlen(str) / 2))) {
const char *ch;