/* Emulation for poll(2)
Contributed by Paolo Bonzini.
- Copyright 2001-2003, 2006-2012 Free Software Foundation, Inc.
+ Copyright 2001-2003, 2006-2013 Free Software Foundation, Inc.
This file is part of gnulib.
/* EFAULT is not necessary to implement, but let's do it in the
simplest case. */
- if (!pfd)
+ if (!pfd && nfd)
{
errno = EFAULT;
return -1;