parse_view_column_config: avoid reading uninitialized/NULL variable
commita09f39e2c6d76eb02c3a3b3fef77f71896313326
authorJeff King <peff@peff.net>
Mon, 17 Nov 2014 17:03:12 +0000 (17 12:03 -0500)
committerJeff King <peff@peff.net>
Mon, 17 Nov 2014 17:05:02 +0000 (17 12:05 -0500)
tree637293d2e284dfb40860d5ce87fbf943a19561a4
parent34575890cd457b1ef80de9c04ead6799234a450f
parse_view_column_config: avoid reading uninitialized/NULL variable

If the view does not support a specific type or we cannot
find a matching column, we do not want to use "column->type"
to report the error. It is either uninitialized or NULL in
these error conditions. Instead, we can want to use the type
we are looking for.
src/view.c