Ticket #3641: code cleanup before 4.8.18 release.

(check_hardlinks): use g_try_new0() istead g_new0() because result is
checked.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-05-15 08:55:05 +03:00
parent 3265531907
commit 4d8e37b9dc
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ check_hardlinks (const vfs_path_t * src_vpath, const vfs_path_t * dst_vpath, str
}
}
lnk = g_new0 (struct link, 1);
lnk = g_try_new0 (struct link, 1);
if (lnk != NULL)
{
lnk->vfs = my_vfs;