commit | b58b9cacbefc5009679273c933f443cad7c48aac | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri Nov 10 21:46:34 2017 +0100 |
committer | Tom Rini <trini@konsulko.com> | Mon Nov 20 20:18:39 2017 -0500 |
tree | 804e5cc613e40dc79efdfb24fa4b31a301017299 | |
parent | b38d6cacb81af7f733ed596e5855b0180f02653e [diff] |
malloc: don't compare pointers to 0 0 is not a pointer. So do not compare pointers to 0. Do not return 0 from functions with a pointer return type. Problem identified with Coccinelle. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>