X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fmanager.c;h=9b9013933ae87ed3fde10e6d93e83441a41a8ad2;hb=d844266ecd4aebd32f55ab22d6ca4266d4a0c4e1;hp=505362d39424f7fa3e15dd552a096d0eb8d70282;hpb=20f2c8b593eba29c2cca67569a5ef5bb68189c54;p=pspp-builds.git diff --git a/src/output/manager.c b/src/output/manager.c index 505362d3..9b901393 100644 --- a/src/output/manager.c +++ b/src/output/manager.c @@ -134,7 +134,7 @@ som_submit (struct som_entity *t) subtable_num++; t->table_num = table_num; t->subtable_num = subtable_num; - t->command_name = xstrdup (command_name); + t->command_name = command_name ? xstrdup (command_name) : NULL; if (t->type == SOM_TABLE) { @@ -219,7 +219,7 @@ output_entity (struct outp_driver *d, struct som_entity *t) void *r; outp_open_page (d); - if (d->class->special || t->type == SOM_CHART) + if (d->class->special) { d->class->submit (d, t); return;