mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +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 == '.')
|
||||
++cp;
|
||||
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;
|
||||
} else {
|
||||
out->cvs = IS_NOT_CVS;
|
||||
|
Loading…
Reference in New Issue
Block a user