summaryrefslogtreecommitdiff
path: root/g10/armor.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:46 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:46 +0900
commitd5a3e1c5fe16a0142f2a4554c4cfed53453bdaa2 (patch)
tree509fadb6ecb2174394d85b588b6cc74946f8d239 /g10/armor.c
parente299a90138c4ee04892f06ea99394c0f55d311db (diff)
downloadgpg2-d5a3e1c5fe16a0142f2a4554c4cfed53453bdaa2.tar.gz
gpg2-d5a3e1c5fe16a0142f2a4554c4cfed53453bdaa2.tar.bz2
gpg2-d5a3e1c5fe16a0142f2a4554c4cfed53453bdaa2.zip
Imported Upstream version 2.2.16upstream/2.2.16
Diffstat (limited to 'g10/armor.c')
-rw-r--r--g10/armor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/armor.c b/g10/armor.c
index cc80968..36215a3 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -1156,10 +1156,10 @@ armor_filter( void *opaque, int control,
}
/* write the comment strings */
- for(s=comment->d;comment;comment=comment->next,s=comment->d)
+ for(;comment;comment=comment->next)
{
iobuf_writestr(a, "Comment: " );
- for( ; *s; s++ )
+ for( s=comment->d; *s; s++ )
{
if( *s == '\n' )
iobuf_writestr(a, "\\n" );