Browse Source

[1062] style fix: check NULL explicitly.

JINMEI Tatuya 13 years ago
parent
commit
f57e8133a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/datasrc/sqlite3_connection.cc

+ 1 - 1
src/lib/datasrc/sqlite3_connection.cc

@@ -354,7 +354,7 @@ convertToPlainChar(const unsigned char* ucp,
         // The field can really be NULL, in which case we return an
         // empty string, or sqlite may have run out of memory, in
         // which case we raise an error
-        if (dbparameters &&
+        if (dbparameters != NULL &&
             sqlite3_errcode(dbparameters->db_) == SQLITE_NOMEM) {
             isc_throw(DataSourceError,
                       "Sqlite3 backend encountered a memory allocation "