Fix segfault drawing pie charts with old versions of libplot.
authorBen Pfaff <blp@gnu.org>
Fri, 3 Jul 2009 18:34:26 +0000 (11:34 -0700)
committerBen Pfaff <blp@gnu.org>
Fri, 3 Jul 2009 18:34:26 +0000 (11:34 -0700)
If chart_create returned null, we dereferenced a null pointer just below.
Avoid doing this.

Also add similar fixes to other code that calls chart_create.  It may not
be necessary in every case.

Reported by Jason Stover.


No differences found