Skip to content

Commit db32f9c

Browse files
committed
Coverity CID 468119
Add additional check to prevent Coverity assuming the worst
1 parent c1042e8 commit db32f9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sesman/chansrv/chansrv_xfs.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ xfs_create_xfs_fs(mode_t umask, uid_t uid, gid_t gid)
283283
(xino1 = g_new0(XFS_INODE_ALL, 1)) == NULL ||
284284
(xino2 = g_new0(XFS_INODE_ALL, 1)) == NULL ||
285285
(xino1_name = strdup(".")) == NULL ||
286-
(xino2_name = strdup(".delete-pending")) == NULL)
286+
(xino2_name = strdup(".delete-pending")) == NULL ||
287+
// This keeps Coverity happy (see below)
288+
xfs->free_count < 3)
287289
{
288290
free(xino1);
289291
free(xino2);

0 commit comments

Comments
 (0)