Changeset ab7d85a in mainline


Ignore:
Timestamp:
2019-02-18T17:03:03Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c707e4
Parents:
bae2a05f
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-09 10:49:04)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-18 17:03:03)
Message:

Remove 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

    rbae2a05f rab7d85a  
    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.