Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Vorbis tools
Commits
53b91094
Commit
53b91094
authored
Sep 12, 2002
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error messages weren't reported correctly. Fix.
svn path=/trunk/vorbis-tools/; revision=3904
parent
246c1bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vorbiscomment/vcedit.c
vorbiscomment/vcedit.c
+4
-3
No files found.
vorbiscomment/vcedit.c
View file @
53b91094
...
...
@@ -6,7 +6,7 @@
*
* Comment editing backend, suitable for use by nice frontend interfaces.
*
* last modified: $Id: vcedit.c,v 1.2
0
2002/0
7/09
12:4
4
:5
4
msmith Exp $
* last modified: $Id: vcedit.c,v 1.2
1
2002/0
9/12
12:4
1
:5
2
msmith Exp $
*/
#include <stdio.h>
...
...
@@ -42,6 +42,7 @@ vorbis_comment *vcedit_comments(vcedit_state *state)
static
void
vcedit_clear_internals
(
vcedit_state
*
state
)
{
char
*
tmp
;
if
(
state
->
vc
)
{
vorbis_comment_clear
(
state
->
vc
);
...
...
@@ -68,7 +69,9 @@ static void vcedit_clear_internals(vcedit_state *state)
free
(
state
->
vi
);
}
tmp
=
state
->
lasterror
;
memset
(
state
,
0
,
sizeof
(
*
state
));
state
->
lasterror
=
tmp
;
}
void
vcedit_clear
(
vcedit_state
*
state
)
...
...
@@ -452,12 +455,10 @@ int vcedit_write(vcedit_state *state, void *out)
* write the page out now */
if
(
state
->
write
(
ogout
.
header
,
1
,
ogout
.
header_len
,
out
)
!=
(
size_t
)
ogout
.
header_len
)
{
fprintf
(
stderr
,
"Bumming out
\n
"
);
goto
cleanup
;
}
if
(
state
->
write
(
ogout
.
body
,
1
,
ogout
.
body_len
,
out
)
!=
(
size_t
)
ogout
.
body_len
)
{
fprintf
(
stderr
,
"Bumming out 2
\n
"
);
goto
cleanup
;
}
}
...
...
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