summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-09 11:40:00 -0700
committerRussell Belfer <rb@github.com>2013-04-09 11:40:00 -0700
commit9da187e83d1b8ab513a43fd54a9fe2be11b1703f (patch)
tree5a0ad82e821540fe5b23ee24c6fe53c9a59aa804 /src
parent94750e8af246b2adf7bd5766e7e0da5fcf928d24 (diff)
downloadlibgit2-9da187e83d1b8ab513a43fd54a9fe2be11b1703f.tar.gz
Fix clang warnings and improve checks
Diffstat (limited to 'src')
-rw-r--r--src/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c
index bbf88eb44..ce1721a0b 100644
--- a/src/date.c
+++ b/src/date.c
@@ -681,8 +681,8 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm
const char *end = date;
int i;
- while (isalpha(*++end));
- ;
+ while (isalpha(*++end))
+ /* scan to non-alpha */;
for (i = 0; i < 12; i++) {
size_t match = match_string(date, month_names[i]);