1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* photoid.c (show_photos): Work properly when not called with a public

key.
This commit is contained in:
David Shaw 2002-06-02 22:19:39 +00:00
parent ee39ad5750
commit e96f8f1fe0
2 changed files with 8 additions and 2 deletions

View file

@ -220,12 +220,13 @@ void show_photos(const struct user_attribute *attrs,
int i;
struct expando_args args;
u32 len;
u32 kid[2];
u32 kid[2]={0,0};
memset(&args,0,sizeof(args));
args.pk=pk;
keyid_from_pk(pk,kid);
if(pk)
keyid_from_pk(pk,kid);
for(i=0;i<count;i++)
if(attrs[i].type==ATTRIB_IMAGE &&