]> granicus.if.org Git - strace/commit
filter_qualify: move memory allocation from parse_inject_expression
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 14 Jan 2018 00:43:12 +0000 (00:43 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 15 Jan 2018 16:23:54 +0000 (16:23 +0000)
commit79a08404d8f70233e4f19cc1ce6d21412a7fc84e
tree54b67cc2118ea39b17c0a242c9f5bf66c0572dff
parent4e5033c8d2d1c3dc6629fdab4b4143f95bdbf8f1
filter_qualify: move memory allocation from parse_inject_expression

* filter_qualify.c (parse_inject_expression): Replace "s" and "buf"
arguments with "str" argument, use it instead of "s" and "*buf".
(qualify_inject_common): Rename "buf" to "copy", initialize it to a copy
of "str", pass "copy" to parse_inject_expression instead of "str" and
"buf".
filter_qualify.c