udhcp: fix some default values from "" to NULL
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 3 May 2011 14:46:47 +0000 (16:46 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 3 May 2011 14:46:47 +0000 (16:46 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/files.c

index 49bcafb9c2cdb57386a0132698fc982425c48c23..6840f3c259a93fa8de318acf76b9a74bc554dbbc 100644 (file)
@@ -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 };