X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-casereader.c;h=fa7498c849ac4dd4daced36a956ffc725362d078;hb=687c1acdbeecd7d0d7fdc4143d444e8b1563b532;hp=909a2b5fd00ad9bfcc37441c9f18880faa3e28c5;hpb=dfd1972f7bcb550a4fc3b05dbe7e71d12334b0a7;p=pspp diff --git a/src/output/table-casereader.c b/src/output/table-casereader.c index 909a2b5fd0..fa7498c849 100644 --- a/src/output/table-casereader.c +++ b/src/output/table-casereader.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,12 +16,12 @@ #include -#include +#include "output/table-provider.h" -#include -#include -#include -#include +#include "data/casereader.h" +#include "data/data-out.h" +#include "data/format.h" +#include "libpspp/i18n.h" #include "gl/xalloc.h" @@ -115,7 +115,8 @@ table_casereader_get_cell (const struct table *t, int x, int y, { if (y == 0) { - cell->contents = xstrdup (tc->heading); + s = xstrdup (tc->heading); + cell->contents = s; cell->destructor = free_string; cell->destructor_aux = s; return;