mirror of https://github.com/MidnightCommander/mc
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:
parent
3265531907
commit
4d8e37b9dc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue