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, 22 Apr 2017 19:15:34 +0000 (20:15 +0100)
commit011174f4c9c5c7abffb14060dddd6311ca417391
tree75cbdf4e2d9a6813f5d6dd8870781ad42b98ee8f
parentb919de21f71b408ce5c908f8cd3ec3c3338996aa
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