From d8b5c8c329f93ea84aee558451f82b1d960cb920 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Thu, 15 Jan 2015 15:16:19 +0200 Subject: [PATCH] Remove strlen() calls from loop condition Avoid str length recalculation every iteration --- src/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index dafb740f8..89816a8c9 100644 --- a/src/util.h +++ b/src/util.h @@ -277,7 +277,7 @@ GIT_INLINE(int) git__fromhex(char h) GIT_INLINE(int) git__ishex(const char *str) { unsigned i; - for (i=0; i