summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorHong-Mei Li <a21834@motorola.com>2013-04-01 11:17:51 +0800
committerHong-Mei Li <a21834@motorola.com>2013-04-01 11:17:51 +0800
commit11467189bc856c087de1fcc4b7abaf97220e3ada (patch)
treef17c10e575efd32c2f70ebcc59bbfdbe180c4680 /trusty/coverage/coverage_test.cpp
parentf5562cb66c1c15d65bc372ede4c180430e1ce9d7 (diff)
init: Fix potential null pointer issue
With the old strdup() mechanism, it may return NULL if insufficient memory was available. So we check the return value or do not use strdup to avoid null pointer issue. Change-Id: Id684948d6cb6c2f06327f29a2ba692f9542fce80 Signed-off-by: Hong-Mei Li <a21834@motorola.com>
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions