Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
39a7ded2
Commit
39a7ded2
authored
Oct 25, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/ffhash: read errno before calling functions which might change it
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e7513e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffhash.c
tools/ffhash.c
+2
-1
No files found.
tools/ffhash.c
View file @
39a7ded2
...
@@ -94,9 +94,10 @@ static int check(char *file)
...
@@ -94,9 +94,10 @@ static int check(char *file)
for
(;;)
{
for
(;;)
{
int
size
=
read
(
fd
,
buffer
,
SIZE
);
int
size
=
read
(
fd
,
buffer
,
SIZE
);
if
(
size
<
0
)
{
if
(
size
<
0
)
{
int
err
=
errno
;
close
(
fd
);
close
(
fd
);
finish
();
finish
();
printf
(
"+READ-FAILED: %s"
,
strerror
(
err
no
));
printf
(
"+READ-FAILED: %s"
,
strerror
(
err
));
ret
=
2
;
ret
=
2
;
goto
end
;
goto
end
;
}
else
if
(
!
size
)
}
else
if
(
!
size
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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