projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Categoricals cleanup: New structure 'payload' which reduces the
[pspp-builds.git]
/
src
/
math
/
interaction.c
diff --git
a/src/math/interaction.c
b/src/math/interaction.c
index 4e4134f0ffcceb0b1ac79b5a8e0b583a3924be41..706092476ec2b3bb8f3f391de37338ffe2ccdbed 100644
(file)
--- a/
src/math/interaction.c
+++ b/
src/math/interaction.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011
, 2012
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
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
@@
-163,6
+163,8
@@
void
interaction_to_string (const struct interaction *iact, struct string *str)
{
int v = 0;
interaction_to_string (const struct interaction *iact, struct string *str)
{
int v = 0;
+ if ( iact->n_vars == 0)
+ return;
ds_put_cstr (str, var_to_string (iact->vars[v]));
for (v = 1; v < iact->n_vars; ++v)
{
ds_put_cstr (str, var_to_string (iact->vars[v]));
for (v = 1; v < iact->n_vars; ++v)
{