diff options
Diffstat (limited to 'scanin/scanrd.c')
-rwxr-xr-x[-rw-r--r--] | scanin/scanrd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scanin/scanrd.c b/scanin/scanrd.c index 7e497be..8e30a76 100644..100755 --- a/scanin/scanrd.c +++ b/scanin/scanrd.c @@ -3471,7 +3471,7 @@ scanrd_ *s ADD_ITEM_TO_TOP(s->alist,sp); /* Add it to the active list */ sp->active = 1; sp->ps[0] = calloc(s->tdepth * binsize,sizeof(unsigned long)); - if (sp->ps == NULL) + if (sp->ps[0] == NULL) error("do_value_scan: Failed to malloc sbox histogram array"); for (e = 1; e < s->depth; e++) sp->ps[e] = sp->ps[e-1] + binsize; |