Commit 229dbf03 authored by npzacs's avatar npzacs
Browse files

_file_open(): check for NULL path

NULL path is valid only when application handles file access.
parent c54891ba
......@@ -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");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment