Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
environment: normalize use of prefixcmp() by removing " != 0"
[gitweb.git]
/
environment.c
diff --git
a/environment.c
b/environment.c
index 0a15349cfe38ab76b1d1cc94878cec2a8d754bbd..cd2b0681423c7c1b5271a0e02d296d2c3062c494 100644
(file)
--- 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;
}