avoid warning if file does not exist

This commit is contained in:
Christian Grothoff 2021-01-15 15:32:10 +01:00
parent aab39b3dc9
commit 8c113d2459
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -2334,6 +2334,9 @@ tofu_check (const struct TALER_SecurityModulePublicKeyP secm[2])
"SECM_TOFU_FILE");
return GNUNET_SYSERR;
}
if (GNUNET_OK ==
GNUNET_DISK_file_test (fn))
{
ret = GNUNET_DISK_fn_read (fn,
&old,
sizeof (old));
@ -2361,7 +2364,8 @@ tofu_check (const struct TALER_SecurityModulePublicKeyP secm[2])
GNUNET_free (fn);
return GNUNET_OK;
}
else
}
{
char *key;