]> granicus.if.org Git - strace/commit
Use dynamically-sized selected[] array for -P PATH
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 5 Mar 2013 14:46:34 +0000 (15:46 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 5 Mar 2013 14:46:34 +0000 (15:46 +0100)
commit7239dbcf2dff792f408c60fe3e278f707fdf497b
treee1ca9125af94f8b1ca5c708f1fc0bf42b471de3e
parentf877982aa2daa571b0e9bc67a3b582c45259d2cd
Use dynamically-sized selected[] array for -P PATH

While at it, added a small optimization of not remembering
the path twice if it happens to be the same.

   text    data     bss     dec     hex filename
 245111     680   10860  256651   3ea8b strace_old
 245075     680    9804  255559   3e647 strace

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
defs.h
pathtrace.c
strace.1
strace.c