Changeset 84331cf in mainline


Ignore:
Timestamp:
2019-02-09T10:49:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
a508e82
Parents:
2c7ef07
Message:

removing unnecessary test from uuid parser

The original parser tested if the strings end with \0
However, the function itself allowed to have an
appendix. If the parser function was used with an
appendix, it always failed. The parser still tests
if the strings ends properly - it used to do the tests
twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/uuid.c

    r2c7ef07 r84331cf  
    139139
    140140        rc = str_uint64_t(str + 24, &eptr, 16, false, &node);
    141         if (rc != EOK || eptr != str + 36 || *eptr != '\0')
     141        if (rc != EOK || eptr != str + 36)
    142142                return EINVAL;
    143143
Note: See TracChangeset for help on using the changeset viewer.