__magick_read__.cc (encode_uint_image): initialize bitdepth
author |
Soren Hauberg <hauberg@gmail.com> |
date |
Thu, 15 Jan 2009 00:36:18 -0500 |
parents |
68aa5abfd136 |
children |
93cf10950334 |
files |
src/ChangeLog src/DLD-FUNCTIONS/__magick_read__.cc |
diffstat |
2 files changed, 6 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-15 Søren Hauberg <hauberg@gmail.com>
+
+ * DLD-FUNCTIONS/__magick_read__.cc (encode_uint_image):
+ Initialize bitdepth.
+
2009-01-14 Søren Hauberg <hauberg@gmail.com>
* DLD-FUNCTIONS/betainc.cc, DLD-FUNCTIONS/chol.cc,
--- a/src/DLD-FUNCTIONS/__magick_read__.cc
+++ b/src/DLD-FUNCTIONS/__magick_read__.cc
@@ -541,7 +541,7 @@
const octave_value& img,
bool has_map)
{
- unsigned int bitdepth;
+ unsigned int bitdepth = 0;
T m;
if (img.is_uint8_type ())