lurcher / unixODBC

The unixODBC Project goals are to develop and promote unixODBC to be the definitive standard for ODBC on non MS Windows platforms.
GNU Lesser General Public License v2.1
102 stars 52 forks source link

fix potential null pointer dereference found by coverity #189

Closed chipitsine closed 1 month ago

chipitsine commented 1 month ago

CID 442531: (#undefined of undefined): Explicit null dereferenced (FORWARD_NULL)

  1. var_deref_model: Passing null pointer szPWD to OpenDatabase, which dereferences it.[show details]

CID 442534: (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

  1. var_deref_model: Passing null pointer szUID to OpenDatabase, which dereferences it.[show details]

211 if ( !OpenDatabase( &hEnv, &hDbc, szDSN, szUID, szPWD ) )