generate_param.py: Use C99 initializer for last element in param table
authorAndreas Schneider <asn@samba.org>
Wed, 12 Dec 2018 20:30:44 +0000 (21:30 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 17 Jan 2019 10:35:12 +0000 (11:35 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
script/generate_param.py

index 4580f096c8b0e435d4a56fda804b9e12121ddc34..5f8a50562d4ca9fbca868b8ebe08aa664794e4da 100644 (file)
@@ -393,7 +393,7 @@ def make_param_table(path_in, path_out):
                         file_out.write("\t\t.flags\t\t= %s,\n" % flags)
                     file_out.write("\t},\n")
 
-        file_out.write("\n\t{NULL,  P_BOOL,  P_NONE,  0,  NULL,  NULL,  0}\n")
+        file_out.write("\n\t{ .label = NULL }\n")
         file_out.write("};\n")
         file_out.write("\n#endif /* %s */\n\n" % header)
     finally: