Improve code readibility by always checking the sep variable for end of
option data in the different option data parsing functions.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
i_len -= strlen(src) + (sep ? 1 : 0);
src = sep;
- if (src)
+ if (sep)
sep = get_sep_pos(src, ARRAY_SEP);
} while (i_len);
i_len -= strlen(src) + (sep ? 1 : 0);
src = sep;
- if (src)
+ if (sep)
sep = get_sep_pos(src, ARRAY_SEP);
} while (i_len);
i_len -= str_len + (sep ? 1 : 0);
src = sep;
- if (src)
+ if (sep)
sep = get_sep_pos(src, ARRAY_SEP);
} while (i_len);