diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-03-27 03:11:13 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-03-27 03:11:13 +0000 |
commit | 6f9d75acb45235a93b1520beec7f96a98bde0412 (patch) | |
tree | 903719a5984cd8008cdd079af7a445de271c23e4 /analyzer | |
parent | e15e137ba527ba97c82149ad8c6bed59088d8616 (diff) | |
download | netpbm-mirror-6f9d75acb45235a93b1520beec7f96a98bde0412.tar.gz netpbm-mirror-6f9d75acb45235a93b1520beec7f96a98bde0412.tar.xz netpbm-mirror-6f9d75acb45235a93b1520beec7f96a98bde0412.zip |
Release 10.73.39
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@4314 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer')
-rw-r--r-- | analyzer/pgmtexture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/analyzer/pgmtexture.c b/analyzer/pgmtexture.c index 07317336..ea0db9b0 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; } |