summaryrefslogtreecommitdiffstats
path: root/g10/kbnode.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-02-12 00:22:09 +0100
committerWerner Koch <wk@gnupg.org>1998-02-12 00:22:09 +0100
commitbc5789665ae8c9f8fc3d02841cd6c9ade447a12a (patch)
treea98aa9fdf58eaffecb38ce481606ee8536280fc8 /g10/kbnode.c
parenta couple of changes; but some parts are now broken (diff)
downloadgnupg2-bc5789665ae8c9f8fc3d02841cd6c9ade447a12a.tar.xz
gnupg2-bc5789665ae8c9f8fc3d02841cd6c9ade447a12a.zip
bug fixes
Diffstat (limited to 'g10/kbnode.c')
-rw-r--r--g10/kbnode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c
index 3096c4df5..dd4f0ce24 100644
--- a/g10/kbnode.c
+++ b/g10/kbnode.c
@@ -180,11 +180,8 @@ walk_kbnode( KBNODE root, KBNODE *context, int all )
return root;
}
- n = *context;
- if( n->next ) {
- n = n->next;
- *context = n;
- }
+ n = (*context)->next;
+ *context = n;
} while( !all && n && (n->private_flag & 1) );
return n;