aboutsummaryrefslogtreecommitdiffstats
path: root/g10/armor.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-06-07 13:33:02 +0000
committerWerner Koch <[email protected]>2010-06-07 13:33:02 +0000
commitbbe388b5db35be6ffece8ebd42f11372af016763 (patch)
tree73e1fe9697b969be66bd89953125010e5721efe1 /g10/armor.c
parentPrint --version etc via estream (diff)
downloadgnupg-bbe388b5db35be6ffece8ebd42f11372af016763.tar.gz
gnupg-bbe388b5db35be6ffece8ebd42f11372af016763.zip
Add unfinished gpgtar.
Collected changes and ports of bug fixes from stable.
Diffstat (limited to 'g10/armor.c')
-rw-r--r--g10/armor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/armor.c b/g10/armor.c
index 19cca3fd4..a6195fc3d 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -798,8 +798,9 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
goto again;
}
}
- else if(n==0)
- onlypad=1;
+
+ if (!n)
+ onlypad = 1;
if( idx == 1 )
buf[n++] = val;