Fixed issue with git revision under Windows

This commit is contained in:
2015-04-01 17:47:47 +02:00
parent 9160f7478e
commit 368de75ec9
+2 -2
View File
@@ -7244,8 +7244,8 @@ void set_cookie(LOGBOOK * lbs, char *name, char *value, BOOL global, char *expir
const char *git_revision()
{
const char *p = _git_revision;
if (strchr(p, '-'))
p = strchr(p, '-')+2;
if (strrchr(p, '-'))
p = strrchr(p, '-')+2;
return p;
}