diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-04-20 17:59:14 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-04-21 22:03:29 -0700 |
commit | c77a0784bdfc8c178f0742689cf6ae02a2fce37f (patch) | |
tree | 6ecf8b712d53786fa19ac5a2e8e2503b3ad2ef6d /configure.ac | |
parent | c8855746aec2a9b732502da0ca3258b4e701c61a (diff) |
Check if pointer returned by BufFileCreate is NULL before writing to it
Fixes clang analyzer warning:
bufio.c:165:13: warning: Access to field 'bufp' results in a dereference
of a null pointer (loaded from variable 'f')
f->bufp = f->buffer;
~ ^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Thomas Klausner <wiz@NetBSD.org>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions