Unlocalized isspace and friends
[git.git] / refs.c
diff --git a/refs.c b/refs.c
index 2aac90c..42240d2 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -2,7 +2,6 @@
 #include "cache.h"
 
 #include <errno.h>
-#include <ctype.h>
 
 /* We allow "recursive" symbolic refs. Only within reason, though */
 #define MAXDEPTH 5
@@ -46,7 +45,7 @@ int validate_symref(const char *path)
        len -= 4;
        while (len && isspace(*buf))
                buf++, len--;
-       if (len >= 5 && !memcmp("refs/", buffer, 5))
+       if (len >= 5 && !memcmp("refs/", buf, 5))
                return 0;
        return -1;
 }