Small refactor

This commit is contained in:
Maas-Maarten Zeeman
2022-01-24 10:44:45 +01:00
parent d388e1cb5c
commit 1777b4424c

View File

@@ -304,11 +304,11 @@ update_callback(void *arg, int sqlite_operation_type, char const *sqlite_databas
esqlite_connection *db = (esqlite_connection *)arg; esqlite_connection *db = (esqlite_connection *)arg;
esqlite_command *cmd = NULL; esqlite_command *cmd = NULL;
ERL_NIF_TERM type, table, rowid; ERL_NIF_TERM type, table, rowid;
cmd = command_create();
if(db == NULL) if(db == NULL)
return; return;
cmd = command_create();
if(!cmd) if(!cmd)
return; return;