avoid warning if file does not exist
This commit is contained in:
parent
aab39b3dc9
commit
8c113d2459
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user