summaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2013-12-01 07:49:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-05 22:12:52 (GMT)
commita4552ceb8a7666e50b5e6ca3ffaecf0c4fc4994c (patch)
tree7c543dd5e53a04a6cb03a4058a9b41cafaa0c4d3 /environment.c
parent15a42a10ec71eb18983750562a2a8a43b224fef0 (diff)
downloadgit-a4552ceb8a7666e50b5e6ca3ffaecf0c4fc4994c.zip
git-a4552ceb8a7666e50b5e6ca3ffaecf0c4fc4994c.tar.gz
git-a4552ceb8a7666e50b5e6ca3ffaecf0c4fc4994c.tar.bz2
environment: normalize use of prefixcmp() by removing " != 0"
To be able to automatically convert prefixcmp() to starts_with() we need first to make sure that prefixcmp() is always used in the same way. So let's remove " != 0" after prefixcmp(). Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c
index 0a15349..cd2b068 100644
--- a/environment.c
+++ b/environment.c
@@ -171,7 +171,7 @@ const char *get_git_namespace(void)
const char *strip_namespace(const char *namespaced_ref)
{
- if (prefixcmp(namespaced_ref, get_git_namespace()) != 0)
+ if (prefixcmp(namespaced_ref, get_git_namespace()))
return NULL;
return namespaced_ref + namespace_len;
}