aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/config.go b/config.go
index 71b791f..589627c 100644
--- a/config.go
+++ b/config.go
@@ -78,11 +78,9 @@ var config struct {
}
func fbfp_get_config(path string) {
- f, err := os.Open(path)
- e(err)
+ f := er(os.Open(path))
- err = scfg.NewDecoder(bufio.NewReader(f)).Decode(&config_with_pointers)
- e(err)
+ e(scfg.NewDecoder(bufio.NewReader(f)).Decode(&config_with_pointers))
/*
* TODO: We segfault when there are missing configuration options.