spiv: cfg: Two fixes.
commit982f9d91035c3562536ea524b9d16aac1719ce13
authorCyril Hrubis <metan@ucw.cz>
Tue, 17 Dec 2013 22:25:47 +0000 (17 23:25 +0100)
committerCyril Hrubis <metan@ucw.cz>
Tue, 17 Dec 2013 22:30:56 +0000 (17 23:30 +0100)
tree98cbb0f6010732c35e8df6cd84f30ac4daf13bd2
parent10ef775932c40eaa18aa171b43d2c77450d93e43
spiv: cfg: Two fixes.

* Fix opt_by_key() SegFault on config entry without key or name space

* Fix read_key() to stop on '='
  (so that parsing key=value (without spaces around the '=') works too)

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
demos/spiv/cfg.c