X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpiechart.c;h=dd889c334cfb39e4e9fac62de83f6c21f81a04fb;hb=e210b20bf6f405637c8c03dd280b5a4a627191b8;hp=523809f37b596d025721883b90797f9f38e0f8a0;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp-builds.git diff --git a/src/piechart.c b/src/piechart.c index 523809f3..dd889c33 100644 --- a/src/piechart.c +++ b/src/piechart.c @@ -54,9 +54,7 @@ piechart_plot(const char *title, const struct slice *slices, int n_slices) int i; double total_magnetude=0; - struct chart *ch; - - ch = chart_create(); + struct chart *ch = chart_create(); const double left_label = ch->data_left + (ch->data_right - ch->data_left)/10.0;