[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v1 0/1] libxl/gentypes: add range init to array elements in json parsing
From: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx> There are two old threads in which this issues was addresses ([1], [2]) but the root cause wasn't defined. The real root cause is that when libxl creates json file it doesn't put entries for fields with default value (which is correct). Then during parsing json back to data, array elements are initialized by zero in all cases. But they should be initialized to default value (if it is not equals to zero). [1] https://marc.info/?l=xen-devel&m=151378727210130&w=2 [2] https://marc.info/?l=xen-devel&m=157071551925734&w=2 Oleksandr Grytsov (1): libxl/gentypes: add range init to array elements in json parsing tools/libxl/gentypes.py | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |