Commit 7780e4dd authored by npzacs's avatar npzacs
Browse files

aacs_open_device(): keep NULL path as NULL

parent 229dbf03
......@@ -1008,7 +1008,7 @@ int aacs_open_device(AACS *aacs, const char *path, const char *configfile_path)
config_file *cf;
int error_code;
aacs->path = str_printf("%s", path);
aacs->path = path ? str_printf("%s", path) : NULL;
error_code = _calc_title_hash(aacs);
if (error_code != AACS_SUCCESS) {
......
Markdown is supported
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