summaryrefslogtreecommitdiffstats
path: root/src/io/base64stream.cpp
diff options
context:
space:
mode:
authorAndrew Higginson <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
committerAndrew <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
commit80960b623a99aae1402ab651b2974ef544ed3b03 (patch)
treeba49d42c2789e9e11f805e2d5263e10f9fedeef8 /src/io/base64stream.cpp
parenttry to fix bug (diff)
parentGDL: Cherry-pick upstream patch 73852 (2011-03-23) - Add missing return value. (diff)
downloadinkscape-80960b623a99aae1402ab651b2974ef544ed3b03.tar.gz
inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.zip
merged with trunk so I can build again...
(bzr r10092.1.36)
Diffstat (limited to 'src/io/base64stream.cpp')
-rw-r--r--src/io/base64stream.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/io/base64stream.cpp b/src/io/base64stream.cpp
index c90f3760b..0a28a8cc3 100644
--- a/src/io/base64stream.cpp
+++ b/src/io/base64stream.cpp
@@ -1,4 +1,4 @@
-/**
+/*
* Base64-enabled input and output streams
*
* This class allows easy encoding and decoding
@@ -51,12 +51,15 @@ static int base64decode[] =
*
*/
Base64InputStream::Base64InputStream(InputStream &sourceStream)
- : BasicInputStream(sourceStream)
+ : BasicInputStream(sourceStream),
+ outCount(0),
+ padCount(0),
+ done(false)
{
- outCount = 0;
- padCount = 0;
- closed = false;
- done = false;
+ for (int k=0;k<3;k++)
+ {
+ outBytes[k]=0;
+ }
}
/**