ui/ncurses: clear DNS server setting before appending new servers
authorJeremy Kerr <jk@ozlabs.org>
Mon, 7 Apr 2014 00:58:57 +0000 (08:58 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 7 Apr 2014 03:49:08 +0000 (11:49 +0800)
commit0dd467aef0f1e104faf8ad5b1d4deaaf71732278
tree50549a07b97f5a65498347648ff12b8ac2e93894
parentae3c354e844698bdb4ed35a6845aa9dca1e9205f
ui/ncurses: clear DNS server setting before appending new servers

Currently, we have a bug where newly-configured DNS servers are appended
to the existing set of servers, rather than replacing them.

This change clears the existing servers out before adding the
newly-configured ones.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-config.c