Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
c2d6b10c
Commit
c2d6b10c
authored
May 29, 2012
by
Thomas White
Browse files
Handle the end of the file list cleanly
parent
d9a6df9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/indexamajig.c
View file @
c2d6b10c
...
...
@@ -473,8 +473,13 @@ static void run_work(const struct index_args *iargs,
rval
=
fgets
(
line
,
1023
,
fh
);
if
(
rval
==
NULL
)
{
free
(
line
);
ERROR
(
"Read error!
\n
"
);
return
;
if
(
feof
(
fh
)
)
{
allDone
=
1
;
continue
;
}
else
{
ERROR
(
"Read error!
\n
"
);
return
;
}
}
chomp
(
line
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment