Simplify para_basename().
authorAndre Noll <maan@systemlinux.org>
Sat, 29 Dec 2007 20:43:13 +0000 (21:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 29 Dec 2007 20:43:13 +0000 (21:43 +0100)
commitdb0e72763ac5660b01c8c2db75901f4efa2c44cc
tree5e3e0ad5a7fb156901c83983a741d5de1ec4d60e
parent1454e9f8e585dace86da0a4a57fb3852f16686a2
Simplify para_basename().

No need to allocate additional memory. This saves a malloc/free
in the hot path of com_ls(), the only caller. Also take care for
the case basename == NULL.
aft.c
string.c
string.h