From f477447d9af4097e8c5d4c15a3dd381237e93ee2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 13 Feb 1998 20:58:50 +0000 Subject: added option export --- g10/kbnode.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'g10/kbnode.c') diff --git a/g10/kbnode.c b/g10/kbnode.c index dd4f0ce24..83ec50742 100644 --- a/g10/kbnode.c +++ b/g10/kbnode.c @@ -177,11 +177,12 @@ walk_kbnode( KBNODE root, KBNODE *context, int all ) do { if( !*context ) { *context = root; - return root; + n = root; + } + else { + n = (*context)->next; + *context = n; } - - n = (*context)->next; - *context = n; } while( !all && n && (n->private_flag & 1) ); return n; -- cgit v1.2.3