summaryrefslogtreecommitdiff
blob: ff8d43ce2d39a6b03dbdaebc25119604d8255db1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- trunk/g10/mainproc.c	2006/03/22 14:37:53	4077
+++ trunk/g10/mainproc.c	2006/04/08 01:23:23	4096
@@ -937,10 +937,12 @@
 		    putchar('\n');
 		    if( opt.fingerprint && !any )
 			print_fingerprint( pk, NULL, 0 );
-		    if( node->next
+		    if( opt.with_colons
+                        && node->next
 			&& node->next->pkt->pkttype == PKT_RING_TRUST ) {
 			printf("rtv:2:%u:\n",
-				 node->next->pkt->pkt.ring_trust->trustval );
+                               node->next->pkt->pkt.ring_trust?
+                               node->next->pkt->pkt.ring_trust->trustval : 0);
 		    }
 		    any=1;
 		}