MARC tables: avoid warning due to tail init
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Jan 2010 08:28:54 +0000 (09:28 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Jan 2010 08:28:54 +0000 (09:28 +0100)
Explicitly initalize last entry of flat table to avoid GCC warning.

src/charconv.tcl

index d57f226..cc81139 100644 (file)
@@ -211,7 +211,7 @@ proc dump_trie {ofilehandle} {
                set v [lindex $m 3]
                 puts $f "\}, /* $v */"
             }
-            puts $f "  \{\"\", 0\}"
+            puts $f "  \{\"\", 0, 0\}"
             puts $f "\};"
             puts $f "struct yaz_iconv_trie $trie(prefix)page${this} = \{"
             puts $f "  $trie(prefix)page${this}_flat, 0"