diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-20 01:44:14 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-20 01:44:14 +0000 |
commit | f820f2633c8529a2475f8a6e877434916c1431a4 (patch) | |
tree | 99a94d820908b76e47d18072e5a54fb4ada6f651 | |
parent | 47bb67b5f894b375b45b4e2283c64321f46e7845 (diff) | |
download | netpbm-mirror-f820f2633c8529a2475f8a6e877434916c1431a4.tar.gz netpbm-mirror-f820f2633c8529a2475f8a6e877434916c1431a4.tar.xz netpbm-mirror-f820f2633c8529a2475f8a6e877434916c1431a4.zip |
Fix unitialized value in ppm_parsecolor()
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@137 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | doc/HISTORY | 5 | ||||
-rw-r--r-- | lib/libppmcolor.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 99d277d3..4a097f63 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -6,6 +6,9 @@ CHANGE HISTORY not yet BJH Release 10.37.0 + libnetpbm: fix bogus results from ppm_parsecolor() of + rgb:0/0/0 style color name. + ppmtogif: fix garbage output with -interlace. Build: fix Darwin build. @@ -93,7 +96,7 @@ not yet BJH Release 10.37.0 pm_accept_to_pamtuples: fix bug: fill in pam structure. Thanks "Christian Schlotter" <schlotter@users.sourceforge.net>. - Fix selection of MMX_SEE fastpath based on GNU compiler version + Fix selection of MMX_SSE fastpath based on GNU compiler version number. Properly clean thinkjettopbm.c with 'make distclean'. diff --git a/lib/libppmcolor.c b/lib/libppmcolor.c index a200ab2b..87f14a5e 100644 --- a/lib/libppmcolor.c +++ b/lib/libppmcolor.c @@ -145,7 +145,8 @@ parseHexDigits(const char * const string, unsigned int digitCount; pixval n; - digitCount = 0; + digitCount = 0; /* initial value */ + n = 0; /* initial value */ while (string[digitCount] != delim) { char const digit = string[digitCount]; if (digit == '\0') |