Aggregate: Fixed bug when attempting to create duplicate variable 20100808040502/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Aug 2010 09:39:16 +0000 (11:39 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Aug 2010 09:39:16 +0000 (11:39 +0200)
commitfad701f04b435a42e2feabd90174274f04a23d4d
treebeae97e761f2d89446af49c117b759d914806fdb
parent2e6cffa44ef5e995139abb9310c9df7fa1795cad
Aggregate: Fixed bug when attempting to create duplicate variable

This change fixes a segfault which occured if AGGREGATE MODE=ADDVARIABLES
attempted to create a variable which already exists in the dictionary.
Added a test to check for this bug.
src/language/stats/aggregate.c
tests/language/stats/aggregate.at