diff options
author | Russell Belfer <rb@github.com> | 2013-11-19 00:14:50 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-11-19 00:14:50 +0400 |
commit | 8f2a3d6251291c0468e074563e16d4c41f59acb1 (patch) | |
tree | d092c5f2088eea3f5eb4384dbfeeda3f313bab14 /src/remote.c | |
parent | 8ea7472e087bfc43b3acd257f7264342b433cccb (diff) |
Fix warnings
Diffstat (limited to 'src/remote.c')
-rw-r--r-- | src/remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote.c b/src/remote.c index d072eb9d5..a032f00ad 100644 --- a/src/remote.c +++ b/src/remote.c @@ -97,7 +97,7 @@ static int get_check_cert(int *out, git_repository *repo) * most specific to least specific. */ /* GIT_SSL_NO_VERIFY environment variable */ - if (val = getenv("GIT_SSL_NO_VERIFY")) + if ((val = getenv("GIT_SSL_NO_VERIFY")) != NULL) return git_config_parse_bool(out, val); /* http.sslVerify config setting */ @@ -1494,12 +1494,12 @@ int git_remote_rename( int git_remote_update_fetchhead(git_remote *remote) { - return remote->update_fetchhead; + return (remote->update_fetchhead != 0); } void git_remote_set_update_fetchhead(git_remote *remote, int value) { - remote->update_fetchhead = value; + remote->update_fetchhead = (value != 0); } int git_remote_is_valid_name( |