actions: fix renaming pubkeys
This commit is contained in:
parent
542bf554fa
commit
6e3bfbe6d3
|
@ -1159,7 +1159,7 @@ int action_rename (bool yes,
|
|||
const std::string & filter, const std::string & name,
|
||||
keyring & KR)
|
||||
{
|
||||
if (name.length() ) {
|
||||
if (!name.length() ) {
|
||||
err ("error: missing new name specification");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue