Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
b0479648
Commit
b0479648
authored
Aug 31, 2005
by
Josh Coalson
Browse files
fix minor problem with error case in handler for --add-seekpoint
parent
585e45d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/metaflac/options.c
View file @
b0479648
...
...
@@ -556,12 +556,14 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi
fprintf
(
stderr
,
"ERROR (--%s): malformed seekpoint specification
\"
%s
\"
,
\n
%s
\n
"
,
opt
,
option_argument
,
violation
);
ok
=
false
;
}
op
=
find_shorthand_operation
(
options
,
OP__ADD_SEEKPOINT
);
if
(
0
==
op
)
op
=
append_shorthand_operation
(
options
,
OP__ADD_SEEKPOINT
);
local_strcat
(
&
(
op
->
argument
.
add_seekpoint
.
specification
),
spec
);
local_strcat
(
&
(
op
->
argument
.
add_seekpoint
.
specification
),
";"
);
free
(
spec
);
else
{
op
=
find_shorthand_operation
(
options
,
OP__ADD_SEEKPOINT
);
if
(
0
==
op
)
op
=
append_shorthand_operation
(
options
,
OP__ADD_SEEKPOINT
);
local_strcat
(
&
(
op
->
argument
.
add_seekpoint
.
specification
),
spec
);
local_strcat
(
&
(
op
->
argument
.
add_seekpoint
.
specification
),
";"
);
free
(
spec
);
}
}
else
if
(
0
==
strcmp
(
opt
,
"add-replay-gain"
))
{
(
void
)
append_shorthand_operation
(
options
,
OP__ADD_REPLAY_GAIN
);
...
...
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