trace: check asprintf() return value
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 22 Jan 2018 17:51:23 +0000 (18:51 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 23 Jan 2018 07:36:36 +0000 (08:36 +0100)
commit653629f19e591a0827ab39de07b4526bb119a57a
tree7466cc6edee848312904b265e984ae2e411abd2e
parent67eb7e68165bfa29ab57eb82f3e40eca17662365
trace: check asprintf() return value

Check asprintf() return value; fixes ignoring return value warnings:

warning: ignoring return value of 'asprintf', declared with attribute
warn_unused_result [-Wunused-result]

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
trace/trace.c