From: Ben Pfaff Date: Sun, 17 Jan 2010 22:37:45 +0000 (-0800) Subject: Fix use of uninitialized data in table_casereader_get_cell(). X-Git-Tag: fc11-i386-build77^0 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16bbc1f1087ed37f7ba997cbd70cbc5326c38e5;p=pspp-builds.git Fix use of uninitialized data in table_casereader_get_cell(). Thanks to John Darrington for pointing out the problem. --- diff --git a/src/output/table-casereader.c b/src/output/table-casereader.c index 909a2b5f..4a1452c0 100644 --- a/src/output/table-casereader.c +++ b/src/output/table-casereader.c @@ -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;