summaryrefslogtreecommitdiff
path: root/src/remote.c
diff options
context:
space:
mode:
authorArkadiy Shapkin <ashapkin@artec-group.com>2013-03-17 04:46:46 +0400
committerArkadiy Shapkin <ashapkin@artec-group.com>2013-03-18 03:30:26 +0400
commit10c06114cbb1c384b7de3cca6d6601ee750f5178 (patch)
tree05b4c66610443dd41b50114480da9e8b7e99a123 /src/remote.c
parenta5f6138407efb6d8866fe8de5aac13454aefcd82 (diff)
downloadlibgit2-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.c2
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;
}