Fixed potential crash in fd_dump function.

This commit is contained in:
Alexandre Julliard 2005-02-03 10:45:18 +00:00
parent c6ec3a3203
commit e432d54fd7
1 changed files with 3 additions and 2 deletions

View File

@ -1068,8 +1068,9 @@ void async_terminate( struct async *async, int status )
static void fd_dump( struct object *obj, int verbose )
{
struct fd *fd = (struct fd *)obj;
fprintf( stderr, "Fd unix_fd=%d user=%p unlink='%s'\n",
fd->unix_fd, fd->user, fd->closed->unlink );
fprintf( stderr, "Fd unix_fd=%d user=%p", fd->unix_fd, fd->user );
if (fd->inode) fprintf( stderr, " inode=%p unlink='%s'", fd->inode, fd->closed->unlink );
fprintf( stderr, "\n" );
}
static void fd_destroy( struct object *obj )