Skip to content

Commit eb446ca

Browse files
committed
- [!] initVals() before accessing Opts.Cfg
1 parent 3b8de34 commit eb446ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

structEnc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ func initDefaults() {
5151
}
5252

5353
func getDefault() {
54+
initVals()
55+
debug(Opts.CRF, 3)
56+
5457
if Opts.Cfg != "" {
5558
data, err := ioutil.ReadFile(Opts.Cfg)
5659
checkError(err)
@@ -66,9 +69,6 @@ func getDefault() {
6669
log.Fatalf("[%s] Error: Wrong target option passed to -t.", progname)
6770
}
6871

69-
initVals()
70-
debug(Opts.CRF, 3)
71-
7272
if Opts.Suffix != "" {
7373
Opts.Suffix = "_" + Opts.Suffix
7474
}

0 commit comments

Comments
 (0)