mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-25 04:43:31 +01:00
Make version parsing tests pass
svn:r3028
This commit is contained in:
parent
fd68834b17
commit
ebab451eed
@ -1487,7 +1487,7 @@ int tor_version_parse(const char *s, tor_version_t *out)
|
|||||||
if (*cp == '-' || *cp == '.')
|
if (*cp == '-' || *cp == '.')
|
||||||
++cp;
|
++cp;
|
||||||
strlcpy(out->status_tag, cp, sizeof(out->status_tag));
|
strlcpy(out->status_tag, cp, sizeof(out->status_tag));
|
||||||
if (0==strcmp(cp, "cvs") && out->major == 0 && out->minor == 0) {
|
if (0==strcmp(cp, "cvs")) {
|
||||||
out->cvs = IS_CVS;
|
out->cvs = IS_CVS;
|
||||||
} else {
|
} else {
|
||||||
out->cvs = IS_NOT_CVS;
|
out->cvs = IS_NOT_CVS;
|
||||||
|
Loading…
Reference in New Issue
Block a user