Always more checks x)

This commit is contained in:
Lailouezzz 2020-01-05 17:31:13 +01:00
parent 84fc38dc35
commit f2d1a212f5
Signed by: Lailouezzz
GPG Key ID: 03FCE8A99EF8482C
1 changed files with 9 additions and 3 deletions

View File

@ -31,8 +31,12 @@ CASIO_LOCAL int casio_sevenfs_open_read(sevenfs_cookie_t *cookie, sevenfs_path_t
casio_stream_t **stream)
{
casio_link_t *handle = cookie; int err;
const char *dirname = (path->sevenfs_path_dir != 0xFF) ? &path->sevenfs_path_data[path->sevenfs_path_dir] : NULL;
const char *filename = &path->sevenfs_path_data[path->sevenfs_path_file];
const char *dirname = path->sevenfs_path_dir != 0xFF ?
&path->sevenfs_path_data[path->sevenfs_path_dir] :
NULL;
const char *filename = path->sevenfs_path_file != 0xFF ?
&path->sevenfs_path_data[path->sevenfs_path_file] :
NULL;
const char *devname = &path->sevenfs_path_data[path->sevenfs_path_dev];
/* Make checks */
@ -94,7 +98,9 @@ CASIO_LOCAL int casio_sevenfs_open_write(sevenfs_cookie_t *cookie, sevenfs_path_
const char *dirname = path->sevenfs_path_dir != 0xFF ?
&path->sevenfs_path_data[path->sevenfs_path_dir] :
NULL;
const char *filename = &path->sevenfs_path_data[path->sevenfs_path_file];
const char *filename = path->sevenfs_path_file != 0xFF ?
&path->sevenfs_path_data[path->sevenfs_path_file] :
NULL;
const char *devname = &path->sevenfs_path_data[path->sevenfs_path_dev];
/* Make checks */