Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-p4: Unset P4DIFF environment variable when using 'p4 -du diff'
[gitweb.git]
/
server-info.c
diff --git
a/server-info.c
b/server-info.c
index a051e49a9ea2f605bdc278394de731ff4c55e627..c1c073b2f05a48772a45602cdc711eef6e211695 100644
(file)
--- a/
server-info.c
+++ b/
server-info.c
@@
-101,7
+101,7
@@
static int read_pack_info_file(const char *infofile)
while (fgets(line, sizeof(line), fp)) {
int len = strlen(line);
- if (line[len-1] == '\n')
+ if (l
en && l
ine[len-1] == '\n')
line[--len] = 0;
if (!len)