lua: expose completely new lists in changes() as well
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 19 Dec 2011 18:25:00 +0000 (19:25 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 19 Dec 2011 18:25:00 +0000 (19:25 +0100)
commitaac40e9b497b9de95c61c058a87a219592c272ad
treed5571850fa2c88329d28079edc1f6bfe82c6a94f
parent16efed543212c44e1d8af01a2471801792c0a32d
lua: expose completely new lists in changes() as well
Since the first delta of a new list is of type UCI_CMD_CHANGE and
not UCI_CMD_LIST_ADD, the current code does not start a new table
and subsequent items are silently disacarded. Expose all items of
new list by coercing the existing string element into a table when
encountering subsequent items.
lua/uci.c