[git commit] udhcp: fix some default values from "" to NULL

Denys Vlasenko vda.linux at googlemail.com
Tue May 3 14:46:47 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=7945808c871f1cf659f7cbd74da18daad052fa40
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/udhcp/files.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 49bcafb..6840f3c 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -80,9 +80,9 @@ static const struct config_keyword keywords[] = {
 	/* keywords with no defaults must be last! */
 	{"option"       , udhcp_str2optset, &server_config.options      , ""},
 	{"opt"          , udhcp_str2optset, &server_config.options      , ""},
-	{"notify_file"  , read_str        , &server_config.notify_file  , ""},
-	{"sname"        , read_str        , &server_config.sname        , ""},
-	{"boot_file"    , read_str        , &server_config.boot_file    , ""},
+	{"notify_file"  , read_str        , &server_config.notify_file  , NULL},
+	{"sname"        , read_str        , &server_config.sname        , NULL},
+	{"boot_file"    , read_str        , &server_config.boot_file    , NULL},
 	{"static_lease" , read_staticlease, &server_config.static_leases, ""},
 };
 enum { KWS_WITH_DEFAULTS = ARRAY_SIZE(keywords) - 6 };
-- 
1.7.3.4



More information about the busybox-cvs mailing list