about summary refs log tree commit diff
path: root/analyzer
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-01-22 19:01:08 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-01-22 19:01:08 +0000
commit00e73ee5efa865643eaad76565c7375f3fa834be (patch)
treed2623539a08941402dc17f14d9183b50b8509e34 /analyzer
parent64f542175bd276397a333b73397ac3e2d7effaf3 (diff)
downloadnetpbm-mirror-00e73ee5efa865643eaad76565c7375f3fa834be.tar.gz
netpbm-mirror-00e73ee5efa865643eaad76565c7375f3fa834be.tar.xz
netpbm-mirror-00e73ee5efa865643eaad76565c7375f3fa834be.zip
Release 10.86.28
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4254 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer')
-rw-r--r--analyzer/pgmtexture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/analyzer/pgmtexture.c b/analyzer/pgmtexture.c
index 58833277..4e0dd4d5 100644
--- a/analyzer/pgmtexture.c
+++ b/analyzer/pgmtexture.c
@@ -95,6 +95,7 @@ vector(unsigned int const nl,
        unsigned int const nh) {
 
     float * v;
+    unsigned int i;
 
     assert(nh >= nl);
 
@@ -103,6 +104,8 @@ vector(unsigned int const nl,
     if (v == NULL)
         pm_error("Unable to allocate memory for a vector.");
 
+    for(i = 0; i < nh - nl +1; ++i)
+        v[i] = 0;
     return v - nl;
 }