projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c12ea60
)
fixed null pointer checking
author
Jason Stover
<jhs@math.gcsu.edu>
Fri, 7 Apr 2006 20:02:27 +0000
(20:02 +0000)
committer
Jason Stover
<jhs@math.gcsu.edu>
Fri, 7 Apr 2006 20:02:27 +0000
(20:02 +0000)
src/math/linreg/coefficient.c
patch
|
blob
|
history
diff --git
a/src/math/linreg/coefficient.c
b/src/math/linreg/coefficient.c
index cca02bcba81363cb4329b3d685ebf45a251746dd..c372cd0e25124bcf9eaa2a3b492c478aca54f1e6 100644
(file)
--- a/
src/math/linreg/coefficient.c
+++ b/
src/math/linreg/coefficient.c
@@
-188,11
+188,14
@@
pspp_linreg_get_coeff (const pspp_linreg_cache *c,
struct pspp_linreg_coeff *result;
const struct variable *tmp;
- if (c == NULL || c->coeff == NULL || c->n_indeps == NULL || v == NULL)
+ if (c == NULL)
+ {
+ return NULL;
+ }
+ if ( c->coeff == NULL || c->n_indeps == NULL || v == NULL)
{
return NULL;
}
-
result = c->coeff + i;
tmp = pspp_linreg_coeff_get_var (result, 0);
while (tmp->index != v->index && i < c->n_coeffs)