[REDIR] Move null redirect checks into caller

The null redirect checks were added as an optimisation to avoid
unnecessary memory allocations.  However, we could avoid this
completely by simply making the caller avoid making a redirection
unless it is not null.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
3 files changed
tree: d354a116fe3bcbf9fc932076d516721796e74fc5
  1. src/
  2. ChangeLog
  3. ChangeLog.O
  4. configure.ac
  5. COPYING
  6. Makefile.am