foxygit / doom Log in
commit 41f216bc13d3ad9788ab318a07928d3ae3e100d1
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sat Jul 11 17:39:38 2015 -0400
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Sat Jul 11 17:39:38 2015 -0400

    textscreen: Fix struct initializers.

    I think this is valid ANSI C, but it seems to cause problems with MSVC
    compilation. As the initializer isn't strictly necessary, let's just
    get rid of it.
---
 textscreen/txt_table.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c
index fdadac27..5913d4de 100644
--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -26,10 +26,10 @@
 #include "txt_strut.h"
 #include "txt_table.h"

-txt_widget_t txt_table_overflow_right = {};
-txt_widget_t txt_table_overflow_down = {};
-txt_widget_t txt_table_eol = {};
-txt_widget_t txt_table_empty = {};
+txt_widget_t txt_table_overflow_right;
+txt_widget_t txt_table_overflow_down;
+txt_widget_t txt_table_eol;
+txt_widget_t txt_table_empty;

 // Returns true if the given widget in the table's widgets[] array refers
 // to an actual widget - not NULL, or one of the special overflow pointers.