key/key-io.c: Produce valid key lines for empty keys.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 13 May 2017 15:29:09 +0000 (16:29 +0100)
commita1a5d097891abd6ac62d4af825a2507980a9f1a0
tree9b5f1efddd91f4c41bfbedd32ea40eb73c119001
parent692e9621bf38a590d2a4a44a9e571df640b07211
key/key-io.c: Produce valid key lines for empty keys.

If a key contains only an empty tree of structures, then `key_write'
returns an empty string, which breaks the whitespace-separated field
structure of the output key line.  Notice this and insert an empty
structure by hand as an unpleasant bodge.

The resulting key is still highly anomalous.  In particular, it doesn't
match any filter, because structure nodes don't have flags.  I don't
know what to do about this.
key/key-io.c