From a18c3ea1d6412dbb88fba5a5f69693450be9e97c Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 1 Jan 2026 21:28:35 -0500 Subject: [PATCH] Simply check if sanity check file should be generated based on nil input --- core/init.go | 2 +- wiki/developers.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/init.go b/core/init.go index e359966..998decc 100644 --- a/core/init.go +++ b/core/init.go @@ -96,7 +96,7 @@ func LibmuttonInit(inputCB func(prompt string) string, clientSpecificCfg map[str } } // generate rcw sanity check file (if requested) - if len(rcwPassword) > 0 { + if rcwPassword != nil { err := RCWSanityCheckGen(rcwPassword) if err != nil { return err diff --git a/wiki/developers.md b/wiki/developers.md index 86e8646..cd94fb9 100644 --- a/wiki/developers.md +++ b/wiki/developers.md @@ -28,7 +28,7 @@ libmutton-based password manager clients should all share the same JSON configur On UNIX-like systems, this is located at `~/.config/libmutton/libmuttoncfg.json`. On Windows, it is located at `~\AppData\Local\libmutton\config\libmuttoncfg.json`. -If creating a third-party client that requires extra configuration to be stored, please use the `ClientSpecific` map in the `cfg.ConfigT` type (as used by `cfg.WriteConfig()`) to save your application-specific configuration. +If creating a third-party client that requires extra configuration to be stored, please use the `ClientSpecific` map in the `config.CfgT` type (as used by `config.Write()`) to save your application-specific configuration. This ensures that a user can use multiple client applications with the same configuration while avoiding conflicts.