HAMMER Utility - Fix seg-fault in hammer cleanup if blank lines in config
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 14 Dec 2009 16:01:57 +0000 (08:01 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 14 Dec 2009 16:01:57 +0000 (08:01 -0800)
commit743332ab9fb2411f4676b35af2c2a0dfadee5f69
tree83faf13e674c14dc3773471e208d9881ba050e9a
parente43c776f3f24db7997624e5e861a57c9b84ae064
HAMMER Utility - Fix seg-fault in hammer cleanup if blank lines in config

* If the HAMMER config contained blank lines the hammer cleanup
  directive would seg-fault trying to parse it.

* Ignore blank lines.  Also ignore lines beginning with a '#' when
  parsing the config.

Reported-by: elekktretterr@exemail.com.au
sbin/hammer/cmd_cleanup.c