summaryrefslogtreecommitdiff
path: root/tools/perf/util/header.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2016-05-10 05:47:26 (GMT)
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-05-10 14:56:52 (GMT)
commit70a6898fdc11272249622f77b034f47f1e9adb35 (patch)
treecafe8a11fbe568c8816f42041e3bacaafa0650e2 /tools/perf/util/header.c
parentb72ca4039099e953f1ea2dbd58c201b14feb6605 (diff)
downloadlinux-70a6898fdc11272249622f77b034f47f1e9adb35.tar.xz
perf tools: Make alias handler to check return value of strbuf
Make alias handler and sq_quote_argv to check the return value of strbuf APIs. In sq_quote_argv() calls die(), but this fix handles strbuf failure as a special case and returns to caller, since the caller - handle_alias() also has to check the return value of other strbuf APIs and those checks can be merged to one if() statement. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20160510054725.6158.84597.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/header.c')
0 files changed, 0 insertions, 0 deletions