Nullify a NULL concern

sqlite3_bind_text() is documented to bind NULL.
This commit is contained in:
Přemysl Eric Janouch 2020-10-02 01:37:08 +02:00
parent 7d4695d8bd
commit 764dbaa126
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 0 additions and 2 deletions

View File

@ -589,10 +589,8 @@ on_queue_incoming(G_GNUC_UNUSED gpointer user_data)
event->class ?: "(none)", event->idle);
if ((rc = sqlite3_bind_int64(g.add_event, 1, event->timestamp)) ||
// FIXME: it will fail on NULL titles
(rc = sqlite3_bind_text(g.add_event, 2, event->title, -1,
SQLITE_STATIC)) ||
// FIXME: it will fail on NULL classes
(rc = sqlite3_bind_text(g.add_event, 3, event->class, -1,
SQLITE_STATIC)) ||
(rc = sqlite3_bind_int(g.add_event, 4, event->idle)))