Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
repack: point out a bug handling stale shallow info
[gitweb.git]
/
http-backend.c
diff --git
a/http-backend.c
b/http-backend.c
index 88c38c834ba479447be8eb64f3bc5331cdb9ed49..458642ef72b879a2f53d6e1f8f192847ed814111 100644
(file)
--- a/
http-backend.c
+++ b/
http-backend.c
@@
-353,7
+353,7
@@
static ssize_t get_content_length(void)
ssize_t val = -1;
const char *str = getenv("CONTENT_LENGTH");
- if (str && !git_parse_ssize_t(str, &val))
+ if (str &&
*str &&
!git_parse_ssize_t(str, &val))
die("failed to parse CONTENT_LENGTH: %s", str);
return val;
}