(parse_something): ignore white-space and ','
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3828 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -84,6 +84,9 @@ parse_something (const char *s, const struct units *units,
|
|||||||
size_t u_len;
|
size_t u_len;
|
||||||
unsigned partial;
|
unsigned partial;
|
||||||
|
|
||||||
|
while(isspace(*p) || *p == ',')
|
||||||
|
++p;
|
||||||
|
|
||||||
val = strtod (p, &next); /* strtol(p, &next, 0); */
|
val = strtod (p, &next); /* strtol(p, &next, 0); */
|
||||||
if (val == 0 && p == next)
|
if (val == 0 && p == next)
|
||||||
if(accept_no_val_p)
|
if(accept_no_val_p)
|
||||||
|
Reference in New Issue
Block a user