commit | 11467189bc856c087de1fcc4b7abaf97220e3ada | [log] [tgz] |
---|---|---|
author | Hong-Mei Li <a21834@motorola.com> | Mon Apr 01 11:17:51 2013 +0800 |
committer | Hong-Mei Li <a21834@motorola.com> | Mon Apr 01 11:17:51 2013 +0800 |
tree | f17c10e575efd32c2f70ebcc59bbfdbe180c4680 | |
parent | f5562cb66c1c15d65bc372ede4c180430e1ce9d7 [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>