From: Andre Noll Date: Sat, 29 Dec 2007 20:43:13 +0000 (+0100) Subject: Simplify para_basename(). X-Git-Tag: v0.3.0~19 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=db0e72763ac5660b01c8c2db75901f4efa2c44cc;hp=db0e72763ac5660b01c8c2db75901f4efa2c44cc 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. ---