Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
a5ad91e7
Commit
a5ad91e7
authored
Oct 10, 2008
by
ivoire
Browse files
FIx potential segfault (CID 168)
parent
29a15bf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/misc/osd/simple.c
View file @
a5ad91e7
...
...
@@ -118,7 +118,7 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
/* Peek for 'style' argument */
pos
=
ftell
(
fd
);
if
(
pos
<
0
)
goto
error
;
goto
error
;
result
=
fscanf
(
fd
,
"%24s %24s"
,
&
cmd
[
0
],
&
action
[
0
]
);
if
(
result
==
0
||
result
==
EOF
)
...
...
@@ -510,7 +510,8 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
error:
msg_Err
(
p_menu
,
"parsing file failed (returned %d)"
,
result
);
osd_MenuFree
(
p_menu
);
if
(
p_menu
)
osd_MenuFree
(
p_menu
);
fclose
(
fd
);
return
VLC_EGENERIC
;
}
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