libpurple/account.c

branch
soc.2008.masterpassword
changeset 34010
cd639f4079d3
parent 34007
60956b5c5ce0
child 34012
43d0c66ef588
equal deleted inserted replaced
34009:8e996cb3581a 34010:cd639f4079d3
413 purple_account_get_username(account), 413 purple_account_get_username(account),
414 error->message); 414 error->message);
415 415
416 } else { 416 } else {
417 child = xmlnode_new_child(node, "password"); 417 child = xmlnode_new_child(node, "password");
418 xmlnode_set_attrib(child, "keyring_id", keyring_id); 418 if (keyring_id != NULL)
419 xmlnode_set_attrib(child, "mode", mode); 419 xmlnode_set_attrib(child, "keyring_id", keyring_id);
420 xmlnode_insert_data(child, data, -1); 420 if (mode != NULL)
421 xmlnode_set_attrib(child, "mode", mode);
422 if (data != NULL)
423 xmlnode_insert_data(child, data, -1);
421 424
422 if (destroy != NULL) 425 if (destroy != NULL)
423 destroy(data); 426 destroy(data);
424 } 427 }
425 } 428 }

mercurial