about summary refs log tree commit diff
path: root/analyzer
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-01-27 02:36:15 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-01-27 02:36:15 +0000
commit074b331756e2dcd520e821db3fd7789926b9ccd9 (patch)
treecd59ca77ea288c69139a77d418b71be3b3d249db /analyzer
parent7363c9a203f82c172be2a06356eb8a2bdf0833a4 (diff)
downloadnetpbm-mirror-074b331756e2dcd520e821db3fd7789926b9ccd9.tar.gz
netpbm-mirror-074b331756e2dcd520e821db3fd7789926b9ccd9.tar.xz
netpbm-mirror-074b331756e2dcd520e821db3fd7789926b9ccd9.zip
Release 10.97.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4263 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 c69643e7..ea0b6210 100644
--- a/analyzer/pgmtexture.c
+++ b/analyzer/pgmtexture.c
@@ -51,6 +51,7 @@ vector(unsigned int const nl,
        unsigned int const nh) {
 
     float * v;
+    unsigned int i;
 
     assert(nh >= nl);
 
@@ -59,6 +60,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;
 }