[AdgPrimitive] Avoid duplication of a 0 length primitive
commitbfca7a8481de128a510beddc0edf14d414659d29
authorNicola Fontana <ntd@entidi.it>
Sat, 4 Jul 2009 13:46:40 +0000 (4 15:46 +0200)
committerNicola Fontana <ntd@entidi.it>
Sat, 4 Jul 2009 13:46:40 +0000 (4 15:46 +0200)
tree2f29fe5c1f7ea47f5b9b6d09026eec6efc43a0ed
parenta14343a4b98a7a40fe14344c1a9aa64f98442db9
[AdgPrimitive] Avoid duplication of a 0 length primitive

The header.length field of a cairo_path_data_t struct includes the
header itsself, so this field should be at least 1 (otherwise there
is no header.length field to inspect). Avoid the duplication of
such inconsistent data by forcing primitive->data to NULL.
adg/adg-primitive.c