This drops several NULL checks against filename input argument.
Those checks are both redundant (as filename validation already
checks for that) and dangerous (as they return early without
setting an error value).
const char *checksum,
GError **error)
{
- g_return_val_if_fail (name != NULL, FALSE);
-
if (!ot_util_filename_validate (name, error))
return FALSE;
gboolean allow_noent,
GError **error)
{
- g_return_val_if_fail (name != NULL, FALSE);
-
if (!ot_util_filename_validate (name, error))
return FALSE;
OstreeMutableTree **out_subdir,
GError **error)
{
- g_return_val_if_fail (name != NULL, FALSE);
-
if (!ot_util_filename_validate (name, error))
return FALSE;