diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-08-16 10:13:45 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-08-16 10:13:45 -0700 |
| commit | ec5b158996e8a4a32e30ea146f62d7b5f5a9260f (patch) | |
| tree | 70d6ef8a3ed7452d7283c654c901b35b4363c5e4 /src | |
| parent | 3a97bff3dc9361018ccd96f6f6fa077b7f70637c (diff) | |
| parent | 50a8fd03673f270a2c1ce5159287efeecfbf1217 (diff) | |
| download | libgit2-ec5b158996e8a4a32e30ea146f62d7b5f5a9260f.tar.gz | |
Merge pull request #373 from carlosmn/fancy-branchname
Fix the reference character check for Unicode
Diffstat (limited to 'src')
| -rw-r--r-- | src/refs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/refs.c b/src/refs.c index 2e5466886..ecd53a69a 100644 --- a/src/refs.c +++ b/src/refs.c @@ -1647,7 +1647,7 @@ void git_repository__refcache_free(git_refcache *refs) *****************************************/ static int check_valid_ref_char(char ch) { - if (ch <= ' ') + if ((unsigned) ch <= ' ') return GIT_ERROR; switch (ch) { @@ -1752,4 +1752,4 @@ int git_reference__normalize_name(char *buffer_out, size_t out_size, const char int git_reference__normalize_name_oid(char *buffer_out, size_t out_size, const char *name) { return normalize_name(buffer_out, out_size, name, 1); -}
\ No newline at end of file +} |
