summaryrefslogtreecommitdiff
path: root/scanin/scanrd.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-25 10:16:00 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-25 10:16:00 +0100
commitf6b8e0eae4374f339487a33e3e4fe5462d5816e1 (patch)
tree5f5f764fd6cda404b2ad6e85762c03fce3a335db /scanin/scanrd.c
parent615ab5513e79c4abc5bbe5c993587785b6a1738b (diff)
New upstream version 2.0.0upstream/2.0.0
Diffstat (limited to 'scanin/scanrd.c')
-rwxr-xr-x[-rw-r--r--]scanin/scanrd.c2
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;