HELLO,
In the following location of ntfs-3g_common.c/parse_mount_options, val cannot be NULL, but null may be 0
case OPT_USERMAPPING :
ctx->usermap_path = strdup(val);
if (!ctx->usermap_path) {
ntfs_log_error("no more memory to store'usermapping' option.\n");
goto err_exit;
}
break;
Can we judge null like the following? Or do you have another way?
case OPT_USERMAPPING :
if(val)
{
ctx->usermap_path = strdup(val);
if (!ctx->usermap_path)
{
ntfs_log_error("no more memory to store'usermapping' option.\n");
goto err_exit;
}
}
break;
HELLO, In the following location of ntfs-3g_common.c/parse_mount_options, val cannot be NULL, but null may be 0
Can we judge null like the following? Or do you have another way?
Thank you!