Nullify a NULL concern
sqlite3_bind_text() is documented to bind NULL.
This commit is contained in:
parent
7d4695d8bd
commit
764dbaa126
2
wdmtg.c
2
wdmtg.c
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue