diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-06-07 22:43:03 +0200 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-06-07 22:43:48 +0200 |
commit | 3f0358604e48432b53abf097aa3ab6a1e3639813 (patch) | |
tree | c132a79507bb39fc37abb49e361f2f720bc69737 /src/revparse.c | |
parent | 763b838152244c0d7433cde0046e9f67369074e3 (diff) | |
download | libgit2-3f0358604e48432b53abf097aa3ab6a1e3639813.tar.gz |
misc: Fix warnings from PVS Studio trial
Diffstat (limited to 'src/revparse.c')
-rw-r--r-- | src/revparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/revparse.c b/src/revparse.c index dd8476e35..1e6b7101f 100644 --- a/src/revparse.c +++ b/src/revparse.c @@ -506,7 +506,7 @@ static int handle_linear_syntax(git_object **out, git_object *obj, const char *m } /* "~" is the same as "~1" */ - if (strlen(movement) == 0) { + if (*movement == '\0') { n = 1; } else { git__strtol32(&n, movement, NULL, 0); |