#984945 answer.c: fix a warning "-Wmissing-field-initializers"

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-10 18:51:03 UTC
Severity:
normal
Tags:
#984945#5
Date:
2021-03-10 18:49:11 UTC
From:
To:
Dear Maintainer,

  The compiler warns about a '0' in the last line after '\0'.

answer.c:807:5: warning: missing initializer for field 'option_address'
of 'struct option_descr' [-Wmissing-field-initializers]

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 answer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/answer.c b/answer.c
index d602c80..2631165 100644
--- a/answer.c
+++ b/answer.c
@@ -804,7 +804,7 @@ Option_Description(post_options)
     {'s', String_Option(post_subject)},
     {'y', String_Option(post_summary)},
     {'p', Bool_Option(post_no_edit)},
-    {'\0', 0},
+    {'\0',},
 };

 void