Keri Harris
2017-09-26 15:46:25 UTC
Hi,
When compiling the Mercury ODBC library (extras/odbc) I get the
following warning:
odbc.m: In function 'odbc_do_cleanup_statement':
odbc.m:1695:14: warning: the comparison will always evaluate as 'true'
for the address of 'stat' will never be NULL [-Waddress]
if (stat != NULL) {
^
This looks like it's due to a typo (stat vs statement) and could
possibly lead to a NULL pointer dereference. The attached patch
addresses this.
Thanks
Keri
When compiling the Mercury ODBC library (extras/odbc) I get the
following warning:
odbc.m: In function 'odbc_do_cleanup_statement':
odbc.m:1695:14: warning: the comparison will always evaluate as 'true'
for the address of 'stat' will never be NULL [-Waddress]
if (stat != NULL) {
^
This looks like it's due to a typo (stat vs statement) and could
possibly lead to a NULL pointer dereference. The attached patch
addresses this.
Thanks
Keri