projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New implementation of long variable names. Each variable has a
[pspp]
/
src
/
var-display.c
diff --git
a/src/var-display.c
b/src/var-display.c
index 47147dfb0fba0de4ad7e371c5294273610db5e90..8243ac626b039d9600717a52a15dff01055a5b00 100644
(file)
--- a/
src/var-display.c
+++ b/
src/var-display.c
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
#include <config.h>
#include <stdio.h>
#include <config.h>
#include <stdio.h>
@@
-56,11
+56,19
@@
cmd_variable_alignment (void)
align = ALIGN_RIGHT;
else if ( lex_match_id("CENTER"))
align = ALIGN_CENTRE;
align = ALIGN_RIGHT;
else if ( lex_match_id("CENTER"))
align = ALIGN_CENTRE;
- else
- return CMD_FAILURE;
+ else
+ {
+ free (v);
+ return CMD_FAILURE;
+ }
lex_force_match(')');
}
lex_force_match(')');
}
+ else
+ {
+ free (v);
+ return CMD_FAILURE;
+ }
for( i = 0 ; i < nv ; ++i )
v[i]->alignment = align;
for( i = 0 ; i < nv ; ++i )
v[i]->alignment = align;
@@
-134,12
+142,20
@@
cmd_variable_level (void)
level = MEASURE_ORDINAL;
else if ( lex_match_id("NOMINAL"))
level = MEASURE_NOMINAL;
level = MEASURE_ORDINAL;
else if ( lex_match_id("NOMINAL"))
level = MEASURE_NOMINAL;
- else
- return CMD_FAILURE;
+ else
+ {
+ free (v);
+ return CMD_FAILURE;
+ }
lex_force_match(')');
}
lex_force_match(')');
}
-
+ else
+ {
+ free (v);
+ return CMD_FAILURE;
+ }
+
for( i = 0 ; i < nv ; ++i )
v[i]->measure = level ;
for( i = 0 ; i < nv ; ++i )
v[i]->measure = level ;