NULL instead of 0 for pointer
This commit is contained in:
@@ -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+");
|
||||||
|
|||||||
Reference in New Issue
Block a user