Index: uspace/srv/vfs/vfs_ops.c
===================================================================
--- uspace/srv/vfs/vfs_ops.c	(revision 32e7411d91ec6dee974bc14d61061d3c3a0a8f7b)
+++ uspace/srv/vfs/vfs_ops.c	(revision 0ac99db3cfe5485b8b7db65da7c3aaa474443d22)
@@ -592,4 +592,5 @@
 	}
 	vfs_file_t *file = vfs_file_get(fd);
+	assert(file);
 	file->node = node;
 	if (oflag & O_APPEND)
