NULL instead of 0 for pointer

This commit is contained in:
Alexey Romanov
2010-12-07 09:55:40 +03:00
parent 2ec6e008eb
commit 125d1791de

View File

@@ -43,7 +43,7 @@ static inline int sql_is_insert(const char *sql);
// Driver Start // Driver Start
static ErlDrvData start(ErlDrvPort port, char* cmd) { static ErlDrvData start(ErlDrvPort port, char* cmd) {
sqlite3_drv_t* retval = (sqlite3_drv_t*) driver_alloc(sizeof(sqlite3_drv_t)); sqlite3_drv_t* retval = (sqlite3_drv_t*) driver_alloc(sizeof(sqlite3_drv_t));
struct sqlite3 *db = 0; struct sqlite3 *db = NULL;
int status = 0; int status = 0;
retval->log = fopen("/tmp/erlang-sqlite3-drv.log", "a+"); retval->log = fopen("/tmp/erlang-sqlite3-drv.log", "a+");