Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
229dbf03
Commit
229dbf03
authored
Jan 30, 2015
by
npzacs
Browse files
_file_open(): check for NULL path
NULL path is valid only when application handles file access.
parent
c54891ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libaacs/aacs.c
View file @
229dbf03
...
...
@@ -382,6 +382,9 @@ static AACS_FILE_H *_file_open(AACS *aacs, const char *file)
if
(
aacs
->
fopen
)
{
return
aacs
->
fopen
(
aacs
->
fopen_handle
,
file
);
}
if
(
!
aacs
->
path
)
{
return
NULL
;
}
f_name
=
str_printf
(
"%s"
DIR_SEP
"%s"
,
aacs
->
path
,
file
);
fp
=
file_open
(
f_name
,
"rb"
);
...
...
Write
Preview
Supports
Markdown
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