summaryrefslogtreecommitdiff
path: root/scanin/scanrd.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-01 10:32:14 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-01 10:32:14 +0100
commit4097e27114d227692d53c5d28487e12a3833cd24 (patch)
treed5c2a62c4db97de94f92150340612c64d3997669 /scanin/scanrd.c
parentf8a0a4e1c775a90c313cb83201eec4cea4e9a7da (diff)
parent5514d94483c98e3320b202b1bb882023a7d12027 (diff)
Merge branch 'feature/upstream' into develop
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;