Stefan Schuermans commited on 2016-12-21 09:47:41
Showing 1 changed files, with 1 additions and 3 deletions.
... | ... |
@@ -174,9 +174,7 @@ int flp_config_proc_distri_addr(flp_config_ctx_t *p_ctx, char *p_setting_part2, |
174 | 174 |
|
175 | 175 |
/* get distributor number */ |
176 | 176 |
val = strtoul(p_setting_part2, &ptr, 0); |
177 |
- if (ptr == p_setting_part2 |
|
178 |
- || (*ptr != 0 && *ptr != ' ' && *ptr != '\t' |
|
179 |
- && *ptr != '\r' && *ptr != '\n')) { |
|
177 |
+ if (ptr == p_setting_part2 || *ptr != 0) { |
|
180 | 178 |
if (p_ctx->p_msg_func) |
181 | 179 |
p_ctx->p_msg_func(p_ctx->p_msg_ctx, flp_msg_type_err, |
182 | 180 |
"invalid mapping specifier \"%s\"" |
183 | 181 |