lib/pb-config: Initialise DNS server info
authorJeremy Kerr <jk@ozlabs.org>
Thu, 19 Sep 2013 09:19:12 +0000 (17:19 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 19 Sep 2013 13:36:32 +0000 (21:36 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/pb-config/pb-config.c

index 53ed6d6e2b31ebab2df2abaf13e11bb7401f9909..e43ddf885bfdee497df6757cf0e6f56b71ffb584 100644 (file)
@@ -16,6 +16,8 @@ static void config_set_defaults(struct config *config)
        config->autoboot_timeout_sec = 10;
        config->network.interfaces = NULL;
        config->network.n_interfaces = 0;
+       config->network.dns_servers = NULL;
+       config->network.n_dns_servers = 0;
 }
 
 static void dump_config(struct config *config)