input/control: INPUT_{ADD, CHANGE}_BOOKMARK: do not add incomplete bookmark
commit7ed4729e023d00cd98b6b550d0e636b52e07c9f1
authorFilip Roséen <filip@atch.se>
Thu, 18 May 2017 10:29:43 +0000 (18 12:29 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 18 May 2017 16:16:06 +0000 (18 19:16 +0300)
tree7198d2eb499bd562dd5c8dd285cfc6d5756ed4e1
parent48d24818cbeb53edd454c6ad57ba31aa1c107ec0
input/control: INPUT_{ADD, CHANGE}_BOOKMARK: do not add incomplete bookmark

A bookmark needs to have a name which is non-null to prevent potential
null-dereferences further down the road, priv->pp_bookmark shall also
not contain any null-pointers.

These changes make sure that the above invariant holds during
modification.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
src/input/control.c