From 68f30c73676780a9fa694e93c56f6e5ebe66968e Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 17 Sep 2013 17:46:03 -0400 Subject: [PATCH] add missing empty string test, pointed out by davec --- config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.go b/config.go index 5d045582..80331fd9 100644 --- a/config.go +++ b/config.go @@ -285,6 +285,7 @@ func loadConfig() (*config, []string, error) { } // Validate profile port number + if cfg.Profile != "" { profilePort, err := strconv.Atoi(cfg.Profile) if err != nil || profilePort < 1024 || profilePort > 65535 { str := "%s: The profile port must be between 1024 and 65535" @@ -293,6 +294,7 @@ func loadConfig() (*config, []string, error) { parser.WriteHelp(os.Stderr) return nil, nil, err } +} // Append the network type to the data directory so it is "namespaced" // per network. In addition to the block database, there are other