diff options
author | Arkadiy Shapkin <ashapkin@artec-group.com> | 2013-03-17 04:46:46 +0400 |
---|---|---|
committer | Arkadiy Shapkin <ashapkin@artec-group.com> | 2013-03-18 03:30:26 +0400 |
commit | 10c06114cbb1c384b7de3cca6d6601ee750f5178 (patch) | |
tree | 05b4c66610443dd41b50114480da9e8b7e99a123 /src/remote.c | |
parent | a5f6138407efb6d8866fe8de5aac13454aefcd82 (diff) | |
download | libgit2-10c06114cbb1c384b7de3cca6d6601ee750f5178.tar.gz |
Several warnings detected by static code analyzer fixed
Implicit type conversion argument of function to size_t type
Suspicious sequence of types castings: size_t -> int -> size_t
Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)'
Unsigned type is never < 0
Diffstat (limited to 'src/remote.c')
-rw-r--r-- | src/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c index 21ca6ecdb..a6f62d6a5 100644 --- a/src/remote.c +++ b/src/remote.c @@ -1254,7 +1254,7 @@ static int rename_fetch_refspecs( goto cleanup; /* Is it an in-memory remote? */ - if (remote->name == '\0') { + if (!remote->name) { error = (callback(git_buf_cstr(&serialized), payload) < 0) ? GIT_EUSER : 0; goto cleanup; } |