tools: fix missing initializer warning in js2c.py
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 24 Aug 2012 20:56:26 +0000 (22:56 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 24 Aug 2012 20:56:28 +0000 (22:56 +0200)
Fix a -Wmissing-field-initializers style compiler warning in the code that's
generated by js2c.py.

tools/js2c.py

index 69ec8a8..3406373 100755 (executable)
@@ -227,7 +227,7 @@ static const struct _native natives[] = {
 
 %(native_lines)s\
 
-  { NULL, NULL } /* sentinel */
+  { NULL, NULL, 0 } /* sentinel */
 
 };